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:
parent
7157ff3ffc
commit
2b1506d6d4
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user