From 7476a9712a85bd49c61456cf33937c6674dae6c0 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 29 Oct 2007 16:23:05 +0100 Subject: [PATCH] don't forget to delete addr pointers --- awesome-client.c | 2 ++ awesome.c | 1 + 2 files changed, 3 insertions(+) diff --git a/awesome-client.c b/awesome-client.c index d304352c..f7498da3 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 72e1b479..ca4779b5 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);