aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2016-07-16 17:06:38 -0400
committerGitHub <noreply@github.com>2016-07-16 17:06:38 -0400
commita655cb8751f22dbfb2c29b3ae36bb47520d4054f (patch)
tree52f400b5038c33a01e655eb76dbab23af6624869 /sway
parentd5ad8c9036f37576af94c6cbbe79e68415bb7e22 (diff)
parentcf7c6c5822c0eb77e8f9372935ca9e2ff740f138 (diff)
Merge pull request #756 from Hummer12007/patch-1
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() {
json_object_object_add(version, "major", json_object_new_int(0));
json_object_object_add(version, "minor", json_object_new_int(0));
json_object_object_add(version, "patch", json_object_new_int(1));
+ free(full_version);
#else
json_object_object_add(version, "human_readable", json_object_new_string("version not found"));
json_object_object_add(version, "major", json_object_new_int(0));