From: Philipp Tölke Date: Sat, 5 Feb 2011 21:52:34 +0000 (+0000) Subject: fix memory-leaks X-Git-Tag: initial-import-from-subversion-38251~19165 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=79a97ba287c5aa8618fecdb60925a3dacf277d3a;p=oweals%2Fgnunet.git fix memory-leaks --- diff --git a/src/vpn/gnunet-daemon-vpn-helper.c b/src/vpn/gnunet-daemon-vpn-helper.c index ae6d18fd9..4af04e6cd 100644 --- a/src/vpn/gnunet-daemon-vpn-helper.c +++ b/src/vpn/gnunet-daemon-vpn-helper.c @@ -113,6 +113,7 @@ start_helper_and_schedule(void *cls, GNUNET_free(ipv6prefix); GNUNET_free(ipv4addr); GNUNET_free(ipv4mask); + GNUNET_free(ifname); /* Tell the dns-service to rehijack the dns-port * The routing-table gets flushed if an interface disappears. diff --git a/src/vpn/gnunet-helper-vpn-api.c b/src/vpn/gnunet-helper-vpn-api.c index c2ab6081d..486dfe042 100644 --- a/src/vpn/gnunet-helper-vpn-api.c +++ b/src/vpn/gnunet-helper-vpn-api.c @@ -44,6 +44,8 @@ stop_helper (struct GNUNET_VPN_HELPER_Handle *handle) GNUNET_DISK_pipe_close (handle->helper_in); GNUNET_DISK_pipe_close (handle->helper_out); + + GNUNET_SERVER_mst_destroy(handle->mst); } /**