OSDN Git Service

.memleak fix by Ronald Bultje. OK'd by Luca.
authorAlex Beregszaszi <alex@rtfs.hu>
Mon, 16 Jul 2007 10:56:40 +0000 (10:56 +0000)
committerAlex Beregszaszi <alex@rtfs.hu>
Mon, 16 Jul 2007 10:56:40 +0000 (10:56 +0000)
Originally committed as revision 9697 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rtsp.c

index 2279e44..0e91e92 100644 (file)
@@ -814,6 +814,8 @@ static void rtsp_send_cmd(AVFormatContext *s,
     }
     if (content_ptr)
         *content_ptr = content;
+    else
+        av_free(content);
 }