[Olsr-dev] [PATCH v2 2/7] gateway: cleanup: free the allocated memory cookie

Ferry Huberts (spam-protected)
Thu Oct 18 11:50:38 CEST 2012


From: Ferry Huberts <(spam-protected)>

This was forgotten

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 src/gateway.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gateway.c b/src/gateway.c
index 17eeefa..10e1b9f 100644
--- a/src/gateway.c
+++ b/src/gateway.c
@@ -195,6 +195,8 @@ void olsr_cleanup_gateways(void) {
   gw_handler = NULL;
 
   olsr_os_cleanup_iptunnel(olsr_cnf->ip_version == AF_INET ? TUNNEL_ENDPOINT_IF : TUNNEL_ENDPOINT_IF6);
+
+  olsr_free_cookie(gw_mem_cookie);
 }
 
 /**
-- 
1.7.11.7





More information about the Olsr-dev mailing list