FreePeerProtocol before freeing, clears potential resource leak (currently false positive)

This commit is contained in:
Ruby Martin
2026-06-24 11:34:55 -06:00
parent acfaac4959
commit 2c23f174ce
+1
View File
@@ -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