aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-11 20:39:19 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-06-11 20:39:19 +0000
commit97377c6c51e7ccf2d0ee4597110435a09ffdc7a5 (patch)
tree681f34e5be1fd00f5fa7c8a3945c9d2ca733e18a /apps
parentd99c6f0cbc3485eb99c90fe7a2d13a17b5f0125e (diff)
Merged revisions 33510 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r33510 | russell | 2006-06-11 16:38:39 -0400 (Sun, 11 Jun 2006) | 2 lines fix two places that would cause a frame to be leaked ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@33511 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_alarmreceiver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/app_alarmreceiver.c b/apps/app_alarmreceiver.c
index c69417aa4..faa2c6a00 100644
--- a/apps/app_alarmreceiver.c
+++ b/apps/app_alarmreceiver.c
@@ -206,6 +206,7 @@ static int send_tone_burst(struct ast_channel *chan, float freq, int duration, i
i += wf.datalen / 8;
if (i > duration) {
+ ast_frfree(f);
break;
}
if (ast_write(chan, &wf)){
@@ -213,6 +214,7 @@ static int send_tone_burst(struct ast_channel *chan, float freq, int duration, i
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;
}
}