Skip to content
Snippets Groups Projects
Commit c35e305c authored by Joshua Colp's avatar Joshua Colp
Browse files

Fix a memory leak of the write buffer when writing a file.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@198064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 87b1997d
Branches
Tags
No related merge requests found
...@@ -322,6 +322,9 @@ static void filestream_destructor(void *arg) ...@@ -322,6 +322,9 @@ static void filestream_destructor(void *arg)
fclose(f->f); fclose(f->f);
if (f->vfs) if (f->vfs)
ast_closestream(f->vfs); ast_closestream(f->vfs);
if (f->write_buffer) {
ast_free(f->write_buffer);
}
if (f->orig_chan_name) if (f->orig_chan_name)
free((void *) f->orig_chan_name); free((void *) f->orig_chan_name);
ast_module_unref(f->fmt->module); ast_module_unref(f->fmt->module);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment