[MPlayer-cvslog] r29625 - in trunk/stream: librtsp/rtsp_session.c realrtsp/real.c realrtsp/sdpplin.c
reimar
subversion at mplayerhq.hu
Wed Sep 2 12:44:27 CEST 2009
Author: reimar
Date: Wed Sep 2 12:44:26 2009
New Revision: 29625
Log:
Fix several more rtsp-related memleaks.
Modified:
trunk/stream/librtsp/rtsp_session.c
trunk/stream/realrtsp/real.c
trunk/stream/realrtsp/sdpplin.c
Modified: trunk/stream/librtsp/rtsp_session.c
==============================================================================
--- trunk/stream/librtsp/rtsp_session.c Wed Sep 2 12:37:32 2009 (r29624)
+++ trunk/stream/librtsp/rtsp_session.c Wed Sep 2 12:44:26 2009 (r29625)
@@ -94,6 +94,7 @@ static void rtsp_close(rtsp_t *s) {
if (s->mrl) free(s->mrl);
if (s->session) free(s->session);
if (s->user_agent) free(s->user_agent);
+ free(s->server);
rtsp_free_answers(s);
rtsp_unschedule_all(s);
free(s);
@@ -194,6 +195,7 @@ rtsp_session_t *rtsp_session_start(int f
rtsp_session->real_session->header_len;
}
rtsp_session->real_session->recv_read = 0;
+ rmff_free_header(h);
} else /* not a Real server : try RTP instead */
{
char *public = NULL;
Modified: trunk/stream/realrtsp/real.c
==============================================================================
--- trunk/stream/realrtsp/real.c Wed Sep 2 12:37:32 2009 (r29624)
+++ trunk/stream/realrtsp/real.c Wed Sep 2 12:44:26 2009 (r29625)
@@ -249,7 +249,7 @@ static rmff_header_t *real_parse_sdp(cha
if (!desc->stream[i]->mlti_data) {
len = 0;
- buf = NULL;
+ buf = xbuffer_free(buf);
} else
len=select_mlti_data(desc->stream[i]->mlti_data, desc->stream[i]->mlti_data_size, rulematches[0], &buf);
Modified: trunk/stream/realrtsp/sdpplin.c
==============================================================================
--- trunk/stream/realrtsp/sdpplin.c Wed Sep 2 12:37:32 2009 (r29624)
+++ trunk/stream/realrtsp/sdpplin.c Wed Sep 2 12:44:26 2009 (r29625)
@@ -376,6 +376,7 @@ void sdpplin_free(sdpplin_t *description
free(description->stream[i]->mlti_data);
if (description->stream[i]->asm_rule_book)
free(description->stream[i]->asm_rule_book);
+ free(description->stream[i]->id);
free(description->stream[i]);
}
}
More information about the MPlayer-cvslog
mailing list