diff options
author | anthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-20 23:15:49 +0000 |
---|---|---|
committer | anthm <anthm@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-09-20 23:15:49 +0000 |
commit | b103a3a27582208e0f51020e4dbb4729eedf03b4 (patch) | |
tree | b14253593c015482a90f2f6239ecfe7c464bc930 /file.c | |
parent | 377b18a0ce7777a6199134f5276a897d85a9ffe4 (diff) |
fix placement of f->fmt->close
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3813 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'file.c')
-rwxr-xr-x | file.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -683,7 +683,7 @@ int ast_closestream(struct ast_filestream *f) snprintf(cmd,size,"/bin/mv -f %s %s",f->filename,f->realfilename); ast_safe_system(cmd); } - f->fmt->close(f); + if (f->filename) { free(f->filename); f->filename = NULL; @@ -692,7 +692,7 @@ int ast_closestream(struct ast_filestream *f) free(f->realfilename); f->realfilename = NULL; } - + f->fmt->close(f); return 0; } |