aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 766c32abc..d150c901c 100644
--- a/file.c
+++ b/file.c
@@ -720,11 +720,11 @@ int ast_closestream(struct ast_filestream *f)
free(f->realfilename);
f->realfilename = NULL;
}
- f->fmt->close(f);
if (f->vfs) {
ast_closestream(f->vfs);
f->vfs = NULL;
}
+ f->fmt->close(f);
return 0;
}