gateway: cleanup: free the allocated memory cookie
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 18 Oct 2012 09:18:08 +0000 (11:18 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 24 Oct 2012 12:17:49 +0000 (14:17 +0200)
This was forgotten

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/gateway.c

index 17eeefa..10e1b9f 100644 (file)
@@ -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);
 }
 
 /**