diff --git a/awesome-client.c b/awesome-client.c index d304352c6..f7498da33 100644 --- a/awesome-client.c +++ b/awesome-client.c @@ -47,6 +47,8 @@ main() (const struct sockaddr *) addr, sizeof(struct sockaddr_un)) == -1) perror("error sending datagram"); + p_delete(&addr); + return EXIT_SUCCESS; } // vim: filetype=c:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 diff --git a/awesome.c b/awesome.c index 72e1b479a..ca4779b5f 100644 --- a/awesome.c +++ b/awesome.c @@ -410,6 +410,7 @@ main(int argc, char *argv[]) perror("error closing UNIX domain socket"); if(unlink(addr->sun_path)) perror("error unlinking UNIX domain socket"); + p_delete(&addr); cleanup(awesomeconf); XCloseDisplay(dpy);