Fix; introduced a core-dump that will occur when SD is not in place.
authorskeezix <skeezix@flotsam-vm.(none)>
Thu, 17 Dec 2009 19:53:29 +0000 (14:53 -0500)
committerskeezix <skeezix@flotsam-vm.(none)>
Thu, 17 Dec 2009 19:53:29 +0000 (14:53 -0500)
apps/pndnotifyd.c

index e52d8e8..f41e842 100644 (file)
@@ -619,7 +619,9 @@ unsigned char perform_discoveries ( char *appspath, char *overridespath,
 
   //WARN: MEMORY LEAK HERE
   pnd_log ( pndn_debug, "pndnotifyd - memory leak here - perform_discoveries()\n" );
-  pnd_box_delete ( applist ); // does not free the disco_t contents!
+  if ( applist ) {
+    pnd_box_delete ( applist ); // does not free the disco_t contents!
+  }
 
   return ( 1 );
 }