From cf7c6c5822c0eb77e8f9372935ca9e2ff740f138 Mon Sep 17 00:00:00 2001 From: Hummer12007 Date: Sun, 17 Jul 2016 00:00:51 +0300 Subject: [PATCH] Fix a memory leak --- sway/ipc-json.c | 1 + 1 file changed, 1 insertion(+) 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));