diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-29 18:39:46 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-05-29 18:39:46 +0000 |
commit | cd01cfe4f7d7e229a69eaecd2255e37929fd5686 (patch) | |
tree | 6ea014859ed2db1d7fe1e88e7ff028228ea5a0dc /main | |
parent | a9049383a64894cd47a82d456ad98f87169eea92 (diff) |
Merged revisions 198064 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r198064 | file | 2009-05-29 15:39:04 -0300 (Fri, 29 May 2009) | 2 lines
Fix a memory leak of the write buffer when writing a file.
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.1@198065 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/main/file.c b/main/file.c index 0def23c0b..1e4900f10 100644 --- a/main/file.c +++ b/main/file.c @@ -322,6 +322,9 @@ static void filestream_destructor(void *arg) fclose(f->f); if (f->vfs) ast_closestream(f->vfs); + if (f->write_buffer) { + ast_free(f->write_buffer); + } if (f->orig_chan_name) free((void *) f->orig_chan_name); ast_module_unref(f->fmt->module); |