sway/ipc: Free ipc_sockaddr upon termination.

This commit is contained in:
S. Christoffer Eliesen 2015-10-16 12:02:41 +02:00
parent f94f8fde7e
commit 26beb66eb5

View file

@ -74,6 +74,10 @@ void ipc_terminate(void) {
} }
close(ipc_socket); close(ipc_socket);
unlink(ipc_sockaddr->sun_path); unlink(ipc_sockaddr->sun_path);
if (ipc_sockaddr) {
free(ipc_sockaddr);
}
} }
struct sockaddr_un *ipc_user_sockaddr(void) { struct sockaddr_un *ipc_user_sockaddr(void) {