Browse Source

rtsp: free opts dictionary on failure of getnameinfo

Signed-off-by: Martin Storsjö <martin@martin.st>
tags/n3.0
Ganesh Ajjanagadde Martin Storsjö 10 years ago
parent
commit
d5f5c90be9
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/rtsp.c

+ 1
- 0
libavformat/rtsp.c View File

@@ -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,


Loading…
Cancel
Save