[asterisk-commits] trunk r10139 - /trunk/file.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Feb 14 18:31:22 MST 2006


Author: kpfleming
Date: Tue Feb 14 19:31:21 2006
New Revision: 10139

URL: http://svn.digium.com/view/asterisk?rev=10139&view=rev
Log:
don't dereference memory that has been freed (issue #6405)

Modified:
    trunk/file.c

Modified: trunk/file.c
URL: http://svn.digium.com/view/asterisk/trunk/file.c?rev=10139&r1=10138&r2=10139&view=diff
==============================================================================
--- trunk/file.c (original)
+++ trunk/file.c Tue Feb 14 19:31:21 2006
@@ -720,11 +720,11 @@
 		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;
 }
 



More information about the asterisk-commits mailing list