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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user