1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-27 21:53:20 +00:00

Fixed leak of a LinkedList by LifeTimeMonitor

Fixed leak of X509 structure by ControlChannelCertificate property of MeshAgent
This commit is contained in:
Bryan Roe
2022-08-08 13:52:45 -07:00
parent 10c6aa295c
commit 284a9ca4b7
2 changed files with 4 additions and 1 deletions

View File

@@ -1654,7 +1654,9 @@ duk_ret_t ILibDuktape_MeshAgent_ServerInfo(duk_context *ctx)
#ifndef MICROSTACK_NOTLS
if (agent->controlChannel != NULL)
{
ILibDuktape_TLS_X509_PUSH(ctx, ILibWebClient_SslGetCert(agent->controlChannel));
X509 *cert = ILibWebClient_SslGetCert(agent->controlChannel);
ILibDuktape_TLS_X509_PUSH(ctx, cert);
X509_free(cert);
}
else
{