sway/ipc: Free ipc_sockaddr upon termination.

master
S. Christoffer Eliesen 9 years ago
parent f94f8fde7e
commit 26beb66eb5

@ -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) {

Loading…
Cancel
Save