aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rw-r--r--sway/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/main.c b/sway/main.c
index b118a182..6754190f 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -126,6 +126,7 @@ void run_as_ipc_client(char *command, char *socket_path) {
uint32_t len = strlen(command);
char *resp = ipc_single_command(socketfd, IPC_COMMAND, command, &len);
printf("%s\n", resp);
+ free(resp);
close(socketfd);
}
@@ -347,6 +348,7 @@ int main(int argc, char **argv) {
}
char *command = join_args(argv + optind, argc - optind);
run_as_ipc_client(command, socket_path);
+ free(command);
return 0;
}