[asterisk-commits] trunk r33446 - /trunk/apps/app_zapscan.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Jun 11 07:44:59 MST 2006


Author: russell
Date: Sun Jun 11 09:44:58 2006
New Revision: 33446

URL: http://svn.digium.com/view/asterisk?rev=33446&view=rev
Log:
don't leak a frame when breaking out of the main loop of this app

Modified:
    trunk/apps/app_zapscan.c

Modified: trunk/apps/app_zapscan.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_zapscan.c?rev=33446&r1=33445&r2=33446&view=diff
==============================================================================
--- trunk/apps/app_zapscan.c (original)
+++ trunk/apps/app_zapscan.c Sun Jun 11 09:44:58 2006
@@ -272,6 +272,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 asterisk-commits mailing list