diff options
author | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-10-16 12:02:41 +0200 |
---|---|---|
committer | S. Christoffer Eliesen <christoffer@eliesen.no> | 2015-10-16 12:16:18 +0200 |
commit | 26beb66eb552569d4eb979916bee750184c4ec24 (patch) | |
tree | fcbe89cd8f5796b7c0221f25cf8c8019da0d9f92 /sway/ipc.c | |
parent | f94f8fde7ec5c96e794772d75bc59b45cea54141 (diff) |
sway/ipc: Free ipc_sockaddr upon termination.
Diffstat (limited to 'sway/ipc.c')
-rw-r--r-- | sway/ipc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) { |