[Asterisk-cvs] asterisk/apps app_dial.c,1.162,1.163

markster markster
Wed Aug 3 16:13:42 CDT 2005


Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv27578/apps

Modified Files:
	app_dial.c 
Log Message:
Be sure not to leak frames in certain cases


Index: app_dial.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v
retrieving revision 1.162
retrieving revision 1.163
diff -u -d -r1.162 -r1.163
--- app_dial.c	26 Jul 2005 16:29:55 -0000	1.162
+++ app_dial.c	3 Aug 2005 20:17:53 -0000	1.163
@@ -599,8 +599,8 @@
 			if (single && ((f->frametype == AST_FRAME_VOICE) || (f->frametype == AST_FRAME_DTMF)))  {
 				if (ast_write(outgoing->chan, f))
 					ast_log(LOG_WARNING, "Unable to forward voice\n");
-				ast_frfree(f);
 			}
+			ast_frfree(f);
 		}
 		if (!*to && (option_verbose > 2))
 			ast_verbose( VERBOSE_PREFIX_3 "Nobody picked up in %d ms\n", orig);




More information about the svn-commits mailing list