.memleak fix by Ronald Bultje. OK'd by Luca.
[libav.git] / 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);
 }