[FFmpeg-devel] [PATCH 03/18] avformat/whip: don't leak options dict

Steven Liu lingjiujianke at gmail.com
Thu Jul 3 17:02:03 EEST 2025


Timo Rothenpieler <timo at rothenpieler.org> 于2025年7月3日周四 00:57写道:
>
> ---
>  libavformat/whip.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/libavformat/whip.c b/libavformat/whip.c
> index a6cdccc21c..a1cf8aff1b 100644
> --- a/libavformat/whip.c
> +++ b/libavformat/whip.c
> @@ -1303,6 +1303,7 @@ next_packet:
>                  /* If got the first binding response, start DTLS handshake. */
>                  ret = ffurl_open_whitelist(&whip->dtls_uc, buf, AVIO_FLAG_READ_WRITE, &s->interrupt_callback,
>                      &opts, s->protocol_whitelist, s->protocol_blacklist, NULL);
> +                av_dict_free(&opts);
>                  if (ret < 0)
>                      goto end;
>                  dtls_initialize(s);
> --
> 2.49.0
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".

LGTM

Thanks
Steven


More information about the ffmpeg-devel mailing list