[rtmpdump] r515 - trunk/librtmp/rtmp.c
hyc
subversion at mplayerhq.hu
Thu Jun 24 21:18:30 CEST 2010
Author: hyc
Date: Thu Jun 24 21:18:29 2010
New Revision: 515
Log:
m_read.buf cannot be freed if we were still searching for the header
Modified:
trunk/librtmp/rtmp.c
Modified: trunk/librtmp/rtmp.c
==============================================================================
--- trunk/librtmp/rtmp.c Tue Jun 22 16:19:08 2010 (r514)
+++ trunk/librtmp/rtmp.c Thu Jun 24 21:18:29 2010 (r515)
@@ -3382,8 +3382,10 @@ RTMP_Close(RTMP *r)
r->m_nBytesIn = 0;
r->m_nBytesInSent = 0;
- free(r->m_read.buf);
- r->m_read.buf = NULL;
+ if (r->m_read.flags & RTMP_READ_HEADER) {
+ free(r->m_read.buf);
+ r->m_read.buf = NULL;
+ }
r->m_read.dataType = 0;
r->m_read.flags = 0;
r->m_read.status = 0;
More information about the rtmpdump
mailing list