[FFmpeg-cvslog] rtsp: free opts dictionary on failure of getnameinfo
Ganesh Ajjanagadde
git at videolan.org
Thu Dec 17 14:52:28 CET 2015
ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Fri Dec 4 01:11:10 2015 -0500| [d5f5c90be9ec120f1320dcdd808b7bd917dee47c] | committer: Martin Storsjö
rtsp: free opts dictionary on failure of getnameinfo
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d5f5c90be9ec120f1320dcdd808b7bd917dee47c
---
libavformat/rtsp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 2c616e8..4beb275 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -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,
More information about the ffmpeg-cvslog
mailing list