From: skeezix Date: Thu, 17 Dec 2009 19:53:29 +0000 (-0500) Subject: Fix; introduced a core-dump that will occur when SD is not in place. X-Git-Tag: Release-2010-05/1~143^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cb0081f862b573a25f9f61dfc25ecfed0363fa0;p=pandora-libraries.git Fix; introduced a core-dump that will occur when SD is not in place. --- diff --git a/apps/pndnotifyd.c b/apps/pndnotifyd.c index e52d8e8..f41e842 100644 --- a/apps/pndnotifyd.c +++ b/apps/pndnotifyd.c @@ -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 ); }