mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 13:20:52 +02:00
FreePeerProtocol before freeing, clears potential resource leak (currently false positive)
This commit is contained in:
@@ -574,6 +574,7 @@ int test_wolfSSL_ALPN_GetPeerProtocol_inval_ext(void)
|
||||
ExpectIntEQ(wolfSSL_ALPN_GetPeerProtocol(ssl, &list, &listSz),
|
||||
WC_NO_ERR_TRACE(BUFFER_ERROR));
|
||||
|
||||
wolfSSL_ALPN_FreePeerProtocol(ssl, &list);
|
||||
wolfSSL_free(ssl);
|
||||
wolfSSL_CTX_free(ctx);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user