[svn-commits] branch 1.2 r33510 - /branches/1.2/apps/app_alarmreceiver.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Sun Jun 11 13:38:39 MST 2006


Author: russell
Date: Sun Jun 11 15:38:39 2006
New Revision: 33510

URL: http://svn.digium.com/view/asterisk?rev=33510&view=rev
Log:
fix two places that would cause a frame to be leaked

Modified:
    branches/1.2/apps/app_alarmreceiver.c

Modified: branches/1.2/apps/app_alarmreceiver.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_alarmreceiver.c?rev=33510&r1=33509&r2=33510&view=diff
==============================================================================
--- branches/1.2/apps/app_alarmreceiver.c (original)
+++ branches/1.2/apps/app_alarmreceiver.c Sun Jun 11 15:38:39 2006
@@ -215,6 +215,7 @@
 
 			i += wf.datalen / 8;
 			if (i > duration) {
+				ast_frfree(f);
 				break;
 			}
 			if (ast_write(chan, &wf)){
@@ -222,6 +223,7 @@
 					ast_verbose(VERBOSE_PREFIX_4 "AlarmReceiver: Failed to write frame on %s\n", chan->name);
 				ast_log(LOG_WARNING, "AlarmReceiver Failed to write frame on %s\n",chan->name);
 				res = -1;
+				ast_frfree(f);
 				break;
 			}
 		}



More information about the svn-commits mailing list