aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-04 01:11:10 -0500
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-06 08:11:47 -0500
commit90409b6da88b0cf17c7161b5bfffe35cb0475eec (patch)
tree596e32f68ffb05fa1eeb7d44e4aac811bf7f1a37 /libavformat
parent3e1724baf8aaf8bd591acd44f260e9d69cf94fdc (diff)
downloadffmpeg-90409b6da88b0cf17c7161b5bfffe35cb0475eec.tar.gz
avformat/rtsp: free opts dictionary on failure of getnameinfo
Fixes: CID 1341579. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rtsp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 9a6b2eb00e..39539e9901 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -2300,6 +2300,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,