[asterisk-commits] diruggles: branch 1.4 r309355 - /branches/1.4/apps/app_externalivr.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Mar 3 18:34:18 CST 2011


Author: diruggles
Date: Thu Mar  3 18:34:13 2011
New Revision: 309355

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=309355
Log:
fix small memory leak

fix small memory leak caused by a string allocation that wasn't freed

(closes issue #18907)
Reported by: andy11
Patches: 
      asterisk_trunk-app_externalivr-leak.patch uploaded by andy11 (license 1224)

Modified:
    branches/1.4/apps/app_externalivr.c

Modified: branches/1.4/apps/app_externalivr.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/apps/app_externalivr.c?view=diff&rev=309355&r1=309354&r2=309355
==============================================================================
--- branches/1.4/apps/app_externalivr.c (original)
+++ branches/1.4/apps/app_externalivr.c Thu Mar  3 18:34:13 2011
@@ -112,6 +112,7 @@
 
 	fprintf(handle, "%s\n", tmp);
 	ast_chan_log(LOG_DEBUG, chan, "sent '%s'\n", tmp);
+	ast_free(tmp);
 }
 
 static void *gen_alloc(struct ast_channel *chan, void *params)




More information about the asterisk-commits mailing list