24 Jun
2010
24 Jun
'10
7:18 p.m.
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;
5947
Age (days ago)
5947
Last active (days ago)
0 comments
1 participants
participants (1)
-
hyc