[svn-commits] branch 1.2 r33449 - in /branches/1.2/apps: app_zapbarge.c app_zapscan.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Sun Jun 11 07:56:55 MST 2006


Author: russell
Date: Sun Jun 11 09:56:55 2006
New Revision: 33449

URL: http://svn.digium.com/view/asterisk?rev=33449&view=rev
Log:
backport a couple of frame leak fixes from the trunk (revisions 33446, 33447)

Modified:
    branches/1.2/apps/app_zapbarge.c
    branches/1.2/apps/app_zapscan.c

Modified: branches/1.2/apps/app_zapbarge.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_zapbarge.c?rev=33449&r1=33448&r2=33449&view=diff
==============================================================================
--- branches/1.2/apps/app_zapbarge.c (original)
+++ branches/1.2/apps/app_zapbarge.c Sun Jun 11 09:56:55 2006
@@ -212,6 +212,7 @@
 				break;
 			if ((f->frametype == AST_FRAME_DTMF) && (f->subclass == '#')) {
 				ret = 0;
+				ast_frfree(f);
 				break;
 			} else if (fd != chan->fds[0]) {
 				if (f->frametype == AST_FRAME_VOICE) {

Modified: branches/1.2/apps/app_zapscan.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_zapscan.c?rev=33449&r1=33448&r2=33449&view=diff
==============================================================================
--- branches/1.2/apps/app_zapscan.c (original)
+++ branches/1.2/apps/app_zapscan.c Sun Jun 11 09:56:55 2006
@@ -269,6 +269,8 @@
 					ast_log(LOG_WARNING, "Failed to read frame: %s\n", strerror(errno));
 			}
         }
+	if (f)
+		ast_frfree(f);
         if (fd != chan->fds[0])
 			close(fd);
         else {



More information about the svn-commits mailing list