Commit 90409b6d authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde

avformat/rtsp: free opts dictionary on failure of getnameinfo

Fixes: CID 1341579.
Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarGanesh Ajjanagadde <gajjanagadde@gmail.com>
parent 3e1724ba
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment