]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Fixed memleak.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 26 Jan 2007 07:55:16 +0000 (07:55 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 26 Jan 2007 07:55:16 +0000 (07:55 +0000)
git-svn-id: file:///svn/unbound/trunk@37 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/unbound.c
doc/Changelog

index b6491392b0528dc68e9a91a85ff8cb8f5be5a18c..c9a8cca5e8f8d6b9450801533d5c4c8374d7f7d8 100644 (file)
@@ -116,8 +116,10 @@ main(int argc, char* argv[])
                fatal_exit("could not create event handling base");
        front = listen_create(base, 0, NULL, port, do_ip4, do_ip6, 
                do_udp, do_tcp, BUFSZ);
-       if(!front)
+       if(!front) {
+               comm_base_delete(base);
                fatal_exit("could not create listening sockets");
+       }
 
        log_info("Start of %s.", PACKAGE_STRING);
 
index ffcfb1e0e6783bcb0b5e737236cd26b19fb87514..45ab70bab868d377df31257650c0cd23f3c6a86b 100644 (file)
@@ -1,3 +1,6 @@
+26  January 2007: Wouter
+       - fixed memleak.
+
 25  January 2007: Wouter
        - fixed lint so it may work on BSD.
        - put license into header of every file.