forked from wolfSSL/wolfssl
fix potential NetX packet memory leak
This commit is contained in:
@ -1683,6 +1683,10 @@ void SSL_ResourceFree(CYASSL* ssl)
|
|||||||
#ifdef HAVE_TLS_EXTENSIONS
|
#ifdef HAVE_TLS_EXTENSIONS
|
||||||
TLSX_FreeAll(ssl->extensions);
|
TLSX_FreeAll(ssl->extensions);
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef HAVE_NETX
|
||||||
|
if (ssl->nxCtx.nxPacket)
|
||||||
|
nx_packet_release(ssl->nxCtx.nxPacket);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user