[asterisk-commits] branch 1.2 r10409 - /branches/1.2/app.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Feb 17 17:17:10 MST 2006


Author: tilghman
Date: Fri Feb 17 18:17:09 2006
New Revision: 10409

URL: http://svn.digium.com/view/asterisk?rev=10409&view=rev
Log:
Bug 6529 - memory leak in ast_play_and_prepend

Modified:
    branches/1.2/app.c

Modified: branches/1.2/app.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/app.c?rev=10409&r1=10408&r2=10409&view=diff
==============================================================================
--- branches/1.2/app.c (original)
+++ branches/1.2/app.c Fri Feb 17 18:17:09 2006
@@ -847,6 +847,7 @@
 		res = ast_set_read_format(chan, AST_FORMAT_SLINEAR);
 		if (res < 0) {
 			ast_log(LOG_WARNING, "Unable to set to linear mode, giving up\n");
+			ast_dsp_free(sildet);
 			return -1;
 		}
 	}
@@ -951,6 +952,7 @@
 	} else {
 		ast_log(LOG_WARNING, "Error creating writestream '%s', format '%s'\n", prependfile, sfmt[x]); 
 	}
+	ast_dsp_free(sildet);
 	*duration = end - start;
 #if 0
 	if (outmsg > 1) {



More information about the asterisk-commits mailing list