diff options
-rw-r--r-- | main/file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/file.c b/main/file.c index 91c863b6f..e86a8d497 100644 --- a/main/file.c +++ b/main/file.c @@ -956,6 +956,8 @@ struct ast_filestream *ast_writefile(const char *filename, const char *type, con } if (fs) ast_free(fs); + fs = NULL; + continue; } fs->trans = NULL; fs->fmt = f; |