Mercurial > mplayer.hg
changeset 29583:c990a2cbfa8d
Fix several more rtsp-related memleaks.
author | reimar |
---|---|
date | Wed, 02 Sep 2009 10:44:26 +0000 |
parents | 10eefb258465 |
children | dc57d7bd98e1 |
files | stream/librtsp/rtsp_session.c stream/realrtsp/real.c stream/realrtsp/sdpplin.c |
diffstat | 3 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/librtsp/rtsp_session.c Wed Sep 02 10:37:32 2009 +0000 +++ b/stream/librtsp/rtsp_session.c Wed Sep 02 10:44:26 2009 +0000 @@ -94,6 +94,7 @@ 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->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;
--- a/stream/realrtsp/real.c Wed Sep 02 10:37:32 2009 +0000 +++ b/stream/realrtsp/real.c Wed Sep 02 10:44:26 2009 +0000 @@ -249,7 +249,7 @@ 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);
--- a/stream/realrtsp/sdpplin.c Wed Sep 02 10:37:32 2009 +0000 +++ b/stream/realrtsp/sdpplin.c Wed Sep 02 10:44:26 2009 +0000 @@ -376,6 +376,7 @@ 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]); } }