[asterisk-commits] branch 1.2 r33513 - /branches/1.2/apps/app_festival.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Jun 11 13:45:07 MST 2006


Author: russell
Date: Sun Jun 11 15:45:06 2006
New Revision: 33513

URL: http://svn.digium.com/view/asterisk?rev=33513&view=rev
Log:
fix a couple places that would leak a frame

Modified:
    branches/1.2/apps/app_festival.c

Modified: branches/1.2/apps/app_festival.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_festival.c?rev=33513&r1=33512&r2=33513&view=diff
==============================================================================
--- branches/1.2/apps/app_festival.c (original)
+++ branches/1.2/apps/app_festival.c Sun Jun 11 15:45:06 2006
@@ -234,11 +234,13 @@
 					myf.f.data = myf.frdata;
 					if (ast_write(chan, &myf.f) < 0) {
 						res = -1;
+						ast_frfree(f);
 						break;
 					}
 					if (res < needed) { /* last frame */
 						ast_log(LOG_DEBUG, "Last frame\n");
 						res=0;
+						ast_frfree(f);
 						break;
 					}
 				} else {



More information about the asterisk-commits mailing list