rtsp: free opts dictionary on failure of getnameinfo

Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
Ganesh Ajjanagadde 2015-12-04 01:11:10 -05:00 committed by Martin Storsjö
parent 8df8f0c70c
commit d5f5c90be9

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,