From e2e2e7dd70db2b1643041853ce7472257814524e Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 16 Jul 2007 10:56:40 +0000 Subject: [PATCH] .memleak fix by Ronald Bultje. OK'd by Luca. Originally committed as revision 9697 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/rtsp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 2279e446fb..0e91e92eb7 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -814,6 +814,8 @@ static void rtsp_send_cmd(AVFormatContext *s, } if (content_ptr) *content_ptr = content; + else + av_free(content); }