[svn-commits] rmudgett: branch 1.8 r421600 - /branches/1.8/main/cli.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Aug 20 17:13:50 CDT 2014


Author: rmudgett
Date: Wed Aug 20 17:13:44 2014
New Revision: 421600

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=421600
Log:
cli.c: Fix tab completion of "module load" when MALLOC_DEBUG is enabled.

filename_completion_function() returns memory that was not allocated by
the MALLOC_DEBUG allocation tracker so the memory must be freed by
ast_std_free().

Modified:
    branches/1.8/main/cli.c

Modified: branches/1.8/main/cli.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/cli.c?view=diff&rev=421600&r1=421599&r2=421600
==============================================================================
--- branches/1.8/main/cli.c (original)
+++ branches/1.8/main/cli.c Wed Aug 20 17:13:44 2014
@@ -241,7 +241,7 @@
 	if (c)
 		c = ast_strdup(c);
 
-	free(d);
+	ast_std_free(d);
 	
 	return c;
 }




More information about the svn-commits mailing list