[libav-devel] [PATCH 2/2] rtsp: free opts dictionary on failure of getnameinfo

Luca Barbato lu_zero at gentoo.org
Mon Dec 7 00:17:43 CET 2015


On 06/12/15 20:30, Martin Storsjö wrote:
> From: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> 
> ---
>  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,
> 

Sounds good.


More information about the libav-devel mailing list