printing_cups: Call the msg_ctx destructor on exit
authorVolker Lendecke <vl@samba.org>
Fri, 11 Apr 2014 07:09:49 +0000 (09:09 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 23 Apr 2014 20:33:08 +0000 (22:33 +0200)
With the new messaging, if we don't do this, we'll leave sockets around. I'm
sure we will not catch everything, so a periodic cleanup will be required.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/printing/print_cups.c

index 6c1e9ce23c80671c405ed4a04e41e19ba19eab34..0ec71ab04a5ff9aadd1b678a3d576ea7b74f2786 100644 (file)
@@ -483,6 +483,7 @@ static bool cups_pcap_load_async(struct tevent_context *ev,
        close(fds[0]);
        cups_cache_reload_async(fds[1]);
        close(fds[1]);
+       TALLOC_FREE(msg_ctx);
        _exit(0);
 }