1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/wolfssl: Fix memory leaks in wolfSSL sock_tls

This commit is contained in:
Flole998 2023-01-24 00:15:17 +00:00
parent 7157ff3ffc
commit 2b1506d6d4

View File

@ -65,7 +65,7 @@ static int tls_session_create(sock_tls_t *sk)
static void tls_session_destroy(sock_tls_t *sk)
{
if (!sk || sk->ssl)
if (!sk || !sk->ssl)
return;
wolfSSL_free(sk->ssl);
}