[FFmpeg-cvslog] avformat/rtsp: free opts dictionary on failure of getnameinfo
Ganesh Ajjanagadde
git at videolan.org
Sun Dec 6 14:22:05 CET 2015
ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Fri Dec 4 01:11:10 2015 -0500| [90409b6da88b0cf17c7161b5bfffe35cb0475eec] | committer: Ganesh Ajjanagadde
avformat/rtsp: free opts dictionary on failure of getnameinfo
Fixes: CID 1341579.
Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=90409b6da88b0cf17c7161b5bfffe35cb0475eec
---
libavformat/rtsp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 9a6b2eb..39539e9 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,
More information about the ffmpeg-cvslog
mailing list