ffmpeg | branch: master | Jun Zhao <barryjz...@tencent.com> | Mon Apr 20 
14:45:16 2020 +0800| [36083450a4be9e3053f4254ca1f696b402dab8e0] | committer: 
Jun Zhao

lavf/tls_mbedtls: fix resource leak

fix resource leak in mbedtls part.

fix #8614

Signed-off-by: Jun Zhao <barryjz...@tencent.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=36083450a4be9e3053f4254ca1f696b402dab8e0
---

 libavformat/tls_mbedtls.c | 1 +
 1 file changed, 1 insertion(+)

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;
 }
 

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to