We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba39aac commit 66caf5aCopy full SHA for 66caf5a
1 file changed
wolfcrypt/test/test.c
@@ -28242,8 +28242,11 @@ static wc_test_ret_t openssl_aes_test(void)
28242
int num = 0;
28243
28244
#if defined(WOLFSSL_SMALL_STACK) && !defined(WOLFSSL_NO_MALLOC)
28245
- if ((enc == NULL) || (dec == NULL))
+ if ((enc == NULL) || (dec == NULL)) {
28246
+ XFREE(enc, HEAP_HINT, DYNAMIC_TYPE_AES);
28247
+ XFREE(dec, HEAP_HINT, DYNAMIC_TYPE_AES);
28248
return MEMORY_E;
28249
+ }
28250
#endif
28251
28252
XMEMCPY(iv, setIv, sizeof(setIv));
0 commit comments