[svn-commits] twilson: branch 1.4 r203311 - /branches/1.4/main/cli.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jun 25 15:09:26 CDT 2009


Author: twilson
Date: Thu Jun 25 15:09:15 2009
New Revision: 203311

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=203311
Log:
Don't try to free NULL

Modified:
    branches/1.4/main/cli.c

Modified: branches/1.4/main/cli.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.4/main/cli.c?view=diff&rev=203311&r1=203310&r2=203311
==============================================================================
--- branches/1.4/main/cli.c (original)
+++ branches/1.4/main/cli.c Thu Jun 25 15:09:15 2009
@@ -1289,7 +1289,9 @@
 		c += (strlen(ast_config_AST_MODULE_DIR) + 1);
 	if (c)
 		c = strdup(c);
-	free(d);
+	if (d) {
+		free(d);
+	}
 	
 	return c;
 }




More information about the svn-commits mailing list