aboutsummaryrefslogtreecommitdiff
path: root/swaymsg
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-12-18 17:52:50 -0500
committerTony Crisci <tony@dubstepdish.com>2017-12-18 17:52:50 -0500
commit8b4d81114a6e25be9f8f7c7bca17e55dbebd675d (patch)
tree903c2aee123885b59f7c00335acc8ff6d23d79e9 /swaymsg
parentf2985000f364693fbeb832df1c4fd468c608e40f (diff)
fix memory leak in swaymsg
Diffstat (limited to 'swaymsg')
-rw-r--r--swaymsg/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaymsg/main.c b/swaymsg/main.c
index 18f17a59..dfc175a8 100644
--- a/swaymsg/main.c
+++ b/swaymsg/main.c
@@ -335,7 +335,7 @@ int main(int argc, char **argv) {
} else {
pretty_print(type, obj);
}
- free(obj);
+ json_object_put(obj);
}
}
close(socketfd);