summaryrefslogtreecommitdiff
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2007-07-16 10:56:40 +0000
committerAlex Beregszaszi <alex@rtfs.hu>2007-07-16 10:56:40 +0000
commite2e2e7dd70db2b1643041853ce7472257814524e (patch)
tree4b55e4ea4d984c5ed3f62ce5abdf1f8c802a80a3 /libavformat/rtsp.c
parent4508af2daab5d70be6d019816508075719b0cce7 (diff)
.memleak fix by Ronald Bultje. OK'd by Luca.
Originally committed as revision 9697 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c2
1 files changed, 2 insertions, 0 deletions
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);
}