aboutsummaryrefslogtreecommitdiff
path: root/sway/ipc.c
diff options
context:
space:
mode:
authorS. Christoffer Eliesen <christoffer@eliesen.no>2015-10-16 12:02:41 +0200
committerS. Christoffer Eliesen <christoffer@eliesen.no>2015-10-16 12:16:18 +0200
commit26beb66eb552569d4eb979916bee750184c4ec24 (patch)
treefcbe89cd8f5796b7c0221f25cf8c8019da0d9f92 /sway/ipc.c
parentf94f8fde7ec5c96e794772d75bc59b45cea54141 (diff)
sway/ipc: Free ipc_sockaddr upon termination.
Diffstat (limited to 'sway/ipc.c')
-rw-r--r--sway/ipc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/ipc.c b/sway/ipc.c
index c1518c1f..325d78ab 100644
--- a/sway/ipc.c
+++ b/sway/ipc.c
@@ -74,6 +74,10 @@ void ipc_terminate(void) {
}
close(ipc_socket);
unlink(ipc_sockaddr->sun_path);
+
+ if (ipc_sockaddr) {
+ free(ipc_sockaddr);
+ }
}
struct sockaddr_un *ipc_user_sockaddr(void) {