[FFmpeg-devel] [PATCH v2] lavf/tls_mbedtls: fix resource leak
mypopy at gmail.com
mypopy at gmail.com
Wed Apr 22 07:39:08 EEST 2020
On Mon, Apr 20, 2020 at 4:24 PM Jun Zhao <mypopydev at gmail.com> wrote:
>
> From: Jun Zhao <barryjzhao at tencent.com>
>
> fix resource leak in mbedtls part.
>
> fix #8614
>
> Signed-off-by: Jun Zhao <barryjzhao at tencent.com>
> ---
> libavformat/tls_mbedtls.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/libavformat/tls_mbedtls.c b/libavformat/tls_mbedtls.c
> index 9b80a1e..965adf1 100644
> --- a/libavformat/tls_mbedtls.c
> +++ b/libavformat/tls_mbedtls.c
> @@ -62,6 +62,7 @@ static int tls_close(URLContext *h)
> mbedtls_ctr_drbg_free(&tls_ctx->ctr_drbg_context);
> mbedtls_entropy_free(&tls_ctx->entropy_context);
>
> + ffurl_closep(&tls_ctx->tls_shared.tcp);
> return 0;
> }
>
> --
> 2.7.4
>
Will apply the patch, tks
More information about the ffmpeg-devel
mailing list