summaryrefslogtreecommitdiff
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-04 01:11:10 -0500
committerMartin Storsjö <martin@martin.st>2015-12-07 11:11:31 +0200
commitd5f5c90be9ec120f1320dcdd808b7bd917dee47c (patch)
treed6209949c82729cabcb2dbf944d6dffcb1ca9d4b /libavformat/rtsp.c
parent8df8f0c70c9c2085d9ca186b7cbf43656c4412eb (diff)
rtsp: free opts dictionary on failure of getnameinfo
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 2c616e80b7..4beb275158 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,