summaryrefslogtreecommitdiffstats
path: root/sway
diff options
context:
space:
mode:
authorLibravatar Hummer12007 <hilobakho@gmail.com>2016-07-17 00:00:51 +0300
committerLibravatar GitHub <noreply@github.com>2016-07-17 00:00:51 +0300
commitcf7c6c5822c0eb77e8f9372935ca9e2ff740f138 (patch)
tree52f400b5038c33a01e655eb76dbab23af6624869 /sway
parentMerge pull request #754 from thejan2009/containers-inside-tabbed-stacked (diff)
downloadsway-cf7c6c5822c0eb77e8f9372935ca9e2ff740f138.tar.gz
sway-cf7c6c5822c0eb77e8f9372935ca9e2ff740f138.tar.zst
sway-cf7c6c5822c0eb77e8f9372935ca9e2ff740f138.zip
Fix a memory leak
Diffstat (limited to 'sway')
-rw-r--r--sway/ipc-json.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c
index 446b1815..e7ab988c 100644
--- a/sway/ipc-json.c
+++ b/sway/ipc-json.c
@@ -199,6 +199,7 @@ json_object *ipc_json_get_version() {
199 json_object_object_add(version, "major", json_object_new_int(0)); 199 json_object_object_add(version, "major", json_object_new_int(0));
200 json_object_object_add(version, "minor", json_object_new_int(0)); 200 json_object_object_add(version, "minor", json_object_new_int(0));
201 json_object_object_add(version, "patch", json_object_new_int(1)); 201 json_object_object_add(version, "patch", json_object_new_int(1));
202 free(full_version);
202#else 203#else
203 json_object_object_add(version, "human_readable", json_object_new_string("version not found")); 204 json_object_object_add(version, "human_readable", json_object_new_string("version not found"));
204 json_object_object_add(version, "major", json_object_new_int(0)); 205 json_object_object_add(version, "major", json_object_new_int(0));