[MPlayer-cvslog] CVS: main/libmpdemux asfheader.c,1.49,1.50

Roberto Togni CVS syncmail at mplayerhq.hu
Sun Apr 2 01:50:32 CEST 2006


CVS change done by Roberto Togni CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv4726

Modified Files:
	asfheader.c 
Log Message:
Don't use free()d pointer CID 260


Index: asfheader.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/asfheader.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- asfheader.c	30 Mar 2006 23:06:18 -0000	1.49
+++ asfheader.c	1 Apr 2006 23:50:30 -0000	1.50
@@ -123,8 +123,8 @@
     return 0; // not ASF guid
   }
   if(asf->header.cno>256){
-    free(asf);
     mp_msg(MSGT_HEADER,MSGL_V,"ASF_check: invalid subchunks_no %d\n",(int) asf->header.cno);
+    free(asf);
     return 0; // invalid header???
   }
   demuxer->priv = asf;




More information about the MPlayer-cvslog mailing list