diff --git a/daemon/unbound.c b/daemon/unbound.c index b6491392b..c9a8cca5e 100644 --- a/daemon/unbound.c +++ b/daemon/unbound.c @@ -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); diff --git a/doc/Changelog b/doc/Changelog index ffcfb1e0e..45ab70bab 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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.