From 26beb66eb552569d4eb979916bee750184c4ec24 Mon Sep 17 00:00:00 2001 From: "S. Christoffer Eliesen" Date: Fri, 16 Oct 2015 12:02:41 +0200 Subject: [PATCH] sway/ipc: Free ipc_sockaddr upon termination. --- sway/ipc.c | 4 ++++ 1 file changed, 4 insertions(+) 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) {