diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2016-07-16 17:06:38 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2016-07-16 17:06:38 -0400 |
| commit | 57db9e92d3c7ec5d35ed7c579d22efb46d99cc40 (patch) | |
| tree | 52f400b5038c33a01e655eb76dbab23af6624869 | |
| parent | f0b9829a88a5c555588b4b91859f2c67fee41f24 (diff) | |
| parent | b076d38066f74a4bcf21f0a45b296537929e6ec2 (diff) | |
Merge pull request #756 from Hummer12007/patch-1
Fix a memory leak
| -rw-r--r-- | sway/ipc-json.c | 1 |
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)); |
