From d5f5c90be9ec120f1320dcdd808b7bd917dee47c Mon Sep 17 00:00:00 2001 From: Ganesh Ajjanagadde Date: Fri, 4 Dec 2015 01:11:10 -0500 Subject: rtsp: free opts dictionary on failure of getnameinfo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Storsjö --- libavformat/rtsp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/rtsp.c') diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 2c616e80b7..4beb275158 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -2279,6 +2279,7 @@ static int sdp_read_header(AVFormatContext *s) if (err) { av_log(s, AV_LOG_ERROR, "getnameinfo: %s\n", gai_strerror(err)); err = AVERROR(EIO); + av_dict_free(&opts); goto fail; } ff_url_join(url, sizeof(url), "rtp", NULL, -- cgit v1.2.3