free PKCS7 struct at the end of test case for loop

This commit is contained in:
JacobBarthelmeh
2025-04-08 10:15:18 -06:00
parent 0171024c4b
commit fb6cbdd5be

View File

@ -15875,6 +15875,8 @@ static int test_wc_PKCS7_EncodeSignedData(void)
/* use exact signed buffer size since BER encoded */
ExpectIntEQ(wc_PKCS7_VerifySignedData(pkcs7, strm.out,
(word32)signedSz), 0);
wc_PKCS7_Free(pkcs7);
pkcs7 = NULL;
}
}
#endif