1
1
mirror of https://github.com/swaywm/sway synced 2024-11-18 23:14:03 +01:00

Fix a memory leak

This commit is contained in:
Hummer12007 2016-07-17 00:00:51 +03:00 committed by GitHub
parent d5ad8c9036
commit cf7c6c5822

@ -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));