Commit d5f5c90b authored by Ganesh Ajjanagadde's avatar Ganesh Ajjanagadde Committed by Martin Storsjö

rtsp: free opts dictionary on failure of getnameinfo

Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 8df8f0c7
......@@ -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,
......
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