You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user