mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
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>
This commit is contained in:
parent
3e1724baf8
commit
90409b6da8
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user