1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

mbedtls: fix issue about memory leak

https://github.com/warmcat/libwebsockets/issues/3177
This commit is contained in:
Lucas 2024-11-05 02:59:58 +00:00
parent 5102a5c8d6
commit e664fc2928

View file

@ -240,4 +240,9 @@ lws_plat_context_late_destroy(struct lws_context *context)
lwsl_err("ZERO RANDOM FD\n");
if (context->fd_random != LWS_INVALID_FILE)
close(context->fd_random);
#if defined(LWS_WITH_MBEDTLS)
mbedtls_entropy_free(&context->mec);
mbedtls_ctr_drbg_free(&context->mcdc);
#endif
}