[Asterisk-cvs] asterisk file.c,1.50,1.51

anthm at lists.digium.com anthm at lists.digium.com
Mon Sep 20 19:12:05 CDT 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv9182

Modified Files:
	file.c 
Log Message:
fix placement of f->fmt->close

Index: file.c
===================================================================
RCS file: /usr/cvsroot/asterisk/file.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- file.c	7 Sep 2004 15:01:48 -0000	1.50
+++ file.c	20 Sep 2004 23:15:49 -0000	1.51
@@ -683,7 +683,7 @@
 			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 @@
 		free(f->realfilename);
 		f->realfilename = NULL;
 	}
-
+	f->fmt->close(f);
 	return 0;
 }
 




More information about the svn-commits mailing list