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:
parent
5102a5c8d6
commit
a71a62f51b
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue