mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 18:01:29 +00:00
sway/ipc: Free ipc_sockaddr upon termination.
This commit is contained in:
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…
Reference in a new issue