diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-18 00:17:09 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-02-18 00:17:09 +0000 |
commit | e99f4c8d99ed0927fc4902cd3634f817090194cd (patch) | |
tree | c6675b52da62a2857a27f8a6725321feb2b409d3 /app.c | |
parent | 411c83acad6259d4fc6b5ce22faaa43540e6ea06 (diff) |
Bug 6529 - memory leak in ast_play_and_prepend
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@10409 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'app.c')
-rw-r--r-- | app.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |