aboutsummaryrefslogtreecommitdiffstats
path: root/app.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-18 00:32:10 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-18 00:32:10 +0000
commit99b95e100859f86ee44f302bcd5c4a4b00679250 (patch)
treeba3d13ab3f31a74ce566c7a28f4579cb7c1d7dbd /app.c
parent011fac8ff8dd9b1e6a1f7d0f6c5c34f862eae97b (diff)
Merged revisions 10409 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r10409 | tilghman | 2006-02-17 18:17:09 -0600 (Fri, 17 Feb 2006) | 2 lines Bug 6529 - memory leak in ast_play_and_prepend ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@10410 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'app.c')
-rw-r--r--app.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/app.c b/app.c
index 1d85fea32..51a668b53 100644
--- a/app.c
+++ b/app.c
@@ -852,6 +852,7 @@ int ast_play_and_prepend(struct ast_channel *chan, char *playfile, char *recordf
res = ast_set_read_format(chan, AST_FORMAT_SLINEAR);
if (res < 0) {
ast_log(LOG_WARNING, "Unable to set to linear mode, giving up\n");
+ ast_dsp_free(sildet);
return -1;
}
}
@@ -956,6 +957,7 @@ int ast_play_and_prepend(struct ast_channel *chan, char *playfile, char *recordf
} else {
ast_log(LOG_WARNING, "Error creating writestream '%s', format '%s'\n", prependfile, sfmt[x]);
}
+ ast_dsp_free(sildet);
*duration = end - start;
#if 0
if (outmsg > 1) {