We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a40b56c commit 65f9cdbCopy full SHA for 65f9cdb
1 file changed
tests/api.c
@@ -19598,6 +19598,9 @@ static int test_wolfSSL_d2i_ASN1_INTEGER(void)
19598
a->isDynamic = 0;
19599
a->data = a->intData;
19600
}
19601
+ /* Reset p2 to NULL. */
19602
+ XFREE(p2, NULL, DYNAMIC_TYPE_ASN1);
19603
+
19604
/* Set a to valid value. */
19605
ExpectIntEQ(wolfSSL_ASN1_INTEGER_set(a, 1), WOLFSSL_SUCCESS);
19606
/* NULL output buffer. */
@@ -19637,7 +19640,6 @@ static int test_wolfSSL_d2i_ASN1_INTEGER(void)
19637
19640
reEncoded = NULL;
19638
19641
wolfSSL_ASN1_INTEGER_free(a);
19639
19642
a = NULL;
- p2 = NULL;
19643
19644
#endif /* OPENSSL_EXTRA */
19645
return EXPECT_RESULT();
0 commit comments