summaryrefslogtreecommitdiff
path: root/libavformat/tls_mbedtls.c
diff options
context:
space:
mode:
authorJun Zhao <barryjzhao@tencent.com>2020-04-20 14:45:16 +0800
committerJun Zhao <barryjzhao@tencent.com>2020-04-22 12:41:29 +0800
commit36083450a4be9e3053f4254ca1f696b402dab8e0 (patch)
treefa4b2f36d23772a5c68d975991b2c9b9450e1a0e /libavformat/tls_mbedtls.c
parent904b25a550cbdcffc22b6d6744da232dc1d6c54f (diff)
downloadffmpeg-36083450a4be9e3053f4254ca1f696b402dab8e0.tar.gz
lavf/tls_mbedtls: fix resource leak
fix resource leak in mbedtls part. fix #8614 Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
Diffstat (limited to 'libavformat/tls_mbedtls.c')
-rw-r--r--libavformat/tls_mbedtls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/tls_mbedtls.c b/libavformat/tls_mbedtls.c
index 9b80a1e3c7..965adf1be4 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;
}