aboutsummaryrefslogtreecommitdiff
path: root/swaybar/main.c
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2015-12-27 13:45:22 +0100
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2015-12-27 13:45:22 +0100
commit8955e5f1ad15b3dc1e4186b92ffb26447df57344 (patch)
tree9c548378b99349d08616118fa43a5cb78ff062be /swaybar/main.c
parent33a74bfb9323958c2fb1e1081c92ba1b683a6a5d (diff)
swaybar: Free unused IPC response
Diffstat (limited to 'swaybar/main.c')
-rw-r--r--swaybar/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/swaybar/main.c b/swaybar/main.c
index 434d7363..747e03de 100644
--- a/swaybar/main.c
+++ b/swaybar/main.c
@@ -393,6 +393,7 @@ void bar_ipc_init(int outputi, const char *bar_id) {
const char *subscribe_json = "[ \"workspace\" ]";
len = strlen(subscribe_json);
res = ipc_single_command(ipc_listen_socketfd, IPC_SUBSCRIBE, subscribe_json, &len);
+ free(res);
ipc_update_workspaces();
}