aboutsummaryrefslogtreecommitdiffstats
path: root/app.c
diff options
context:
space:
mode:
authorroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-18 01:03:27 +0000
committerroot <root@f38db490-d61c-443f-a65b-d21fe96a405b>2006-02-18 01:03:27 +0000
commit0edd5e59c8fb1efce707d33fd85fb83aedac7c75 (patch)
tree5c8972c4baae93235463e91024449256445d3e48 /app.c
parent6b422b9a2852623e273db83f4edea166d8ba6fd0 (diff)
automerge commit
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2-netsec@10430 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 95347a27e..af0f6c355 100644
--- a/app.c
+++ b/app.c
@@ -847,6 +847,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;
}
}
@@ -951,6 +952,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) {