diff --git a/main/file.c b/main/file.c index f99b543cb3..79822e652d 100644 --- a/main/file.c +++ b/main/file.c @@ -938,6 +938,7 @@ struct ast_filestream *ast_readfile(const char *filename, const char *type, cons ast_log(LOG_WARNING, "Unable to open %s\n", fn); if (fs) ast_free(fs); + fs = NULL; if (bfile) fclose(bfile); free(fn);