fix memory-leaks
authorPhilipp Tölke <toelke@in.tum.de>
Sat, 5 Feb 2011 21:52:34 +0000 (21:52 +0000)
committerPhilipp Tölke <toelke@in.tum.de>
Sat, 5 Feb 2011 21:52:34 +0000 (21:52 +0000)
src/vpn/gnunet-daemon-vpn-helper.c
src/vpn/gnunet-helper-vpn-api.c

index ae6d18fd948ea5ab3f04c45989bd73d82683a1b9..4af04e6cd012335070d50cabe1e7be7bdd6a78b1 100644 (file)
@@ -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.
index c2ab6081dbc8ac337955f11708a3da468ecac38c..486dfe042a32de6cd7131930648faa3c0c72b3c8 100644 (file)
@@ -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);
 }
 
 /**