diff options
Diffstat (limited to 'main/file.c')
-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 0439d03a8..3c60d4244 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); |