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: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@198065 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.1
Joshua Colp 17 years ago
parent 79584f9e38
commit 761703d7e0

@ -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);

Loading…
Cancel
Save