summaryrefslogtreecommitdiff
path: root/swaybar/ipc.c
diff options
context:
space:
mode:
authorIan Fan <[email protected]>2020-03-05 16:28:43 +0000
committerSimon Ser <[email protected]>2020-03-30 17:31:00 +0200
commitb54f5e170a2936bc272aca7fe44a90059f6da716 (patch)
tree17cad312fbe415706927de260a48837656523bd9 /swaybar/ipc.c
parentdf48c48123de88a91362844881fa20eddc30f597 (diff)
swaybar: fix memory leaks
Diffstat (limited to 'swaybar/ipc.c')
-rw-r--r--swaybar/ipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/ipc.c b/swaybar/ipc.c
index a3a9b495..f3b7dd3d 100644
--- a/swaybar/ipc.c
+++ b/swaybar/ipc.c
@@ -40,7 +40,7 @@ void ipc_send_workspace_command(struct swaybar *bar, const char *ws) {
command[d++] = ws[i];
}
- ipc_single_command(bar->ipc_socketfd, IPC_COMMAND, command, &size);
+ free(ipc_single_command(bar->ipc_socketfd, IPC_COMMAND, command, &size));
free(command);
}