mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
sway/ipc: Free ipc_sockaddr upon termination.
This commit is contained in:
parent
f94f8fde7e
commit
26beb66eb5
1 changed files with 4 additions and 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) {
|
||||
|
|
Loading…
Reference in a new issue