[asterisk-commits] trunk r33448 - /trunk/apps/app_speech_utils.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Jun 11 07:52:04 MST 2006


Author: russell
Date: Sun Jun 11 09:52:04 2006
New Revision: 33448

URL: http://svn.digium.com/view/asterisk?rev=33448&view=rev
Log:
don't leak a frame when breaking out of the loop on a timeout

Modified:
    trunk/apps/app_speech_utils.c

Modified: trunk/apps/app_speech_utils.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_speech_utils.c?rev=33448&r1=33447&r2=33448&view=diff
==============================================================================
--- trunk/apps/app_speech_utils.c (original)
+++ trunk/apps/app_speech_utils.c Sun Jun 11 09:52:04 2006
@@ -576,6 +576,8 @@
 			time(&current);
 			if ((current-start) >= timeout) {
 				done = 1;
+				if (f)
+					ast_frfree(f);
 				break;
 			}
 		}



More information about the asterisk-commits mailing list