conf: olsrd_free_cnf: set pointers back to NULL after freeing
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 16 Nov 2015 11:06:42 +0000 (12:06 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 16 Nov 2015 14:26:30 +0000 (15:26 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/cfgparser/olsrd_conf.c

index 23ab597..2d3667c 100644 (file)
@@ -1021,7 +1021,9 @@ olsrd_free_cnf(struct olsrd_config *cnf)
   }
 
   free(cnf->configuration_file);
+  cnf->configuration_file = NULL;
   free(cnf->lock_file);
+  cnf->lock_file = NULL;
 
   return;
 }