From: Wouter Wijngaards Date: Fri, 26 Jan 2007 07:55:16 +0000 (+0000) Subject: Fixed memleak. X-Git-Tag: release-0.0~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f7c5d26944d9e10eef844351911cff7ba64d797;p=thirdparty%2Funbound.git Fixed memleak. git-svn-id: file:///svn/unbound/trunk@37 be551aaa-1e26-0410-a405-d3ace91eadb9 --- 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.