changeset 18011:11c9dfbe120c

Don't use free()d pointer CID 260
author rtognimp
date Sat, 01 Apr 2006 23:50:30 +0000
parents e087229c5002
children 2b4e71051200
files libmpdemux/asfheader.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/asfheader.c	Fri Mar 31 21:29:37 2006 +0000
+++ b/libmpdemux/asfheader.c	Sat Apr 01 23:50:30 2006 +0000
@@ -123,8 +123,8 @@
     return 0; // not ASF guid
   }
   if(asf->header.cno>256){
+    mp_msg(MSGT_HEADER,MSGL_V,"ASF_check: invalid subchunks_no %d\n",(int) asf->header.cno);
     free(asf);
-    mp_msg(MSGT_HEADER,MSGL_V,"ASF_check: invalid subchunks_no %d\n",(int) asf->header.cno);
     return 0; // invalid header???
   }
   demuxer->priv = asf;