wolfssl: Fix memory leak on failed ICV verification if not using in-place decryption

Fixes: c92eade82c ("wolfssl: Add wolfSSL plugin for cryptographic implementations")
This commit is contained in:
Tobias Brunner
2026-07-22 18:20:12 +02:00
parent 023c626525
commit 1fe813f05e
@@ -236,7 +236,10 @@ METHOD(aead_t, decrypt, bool,
default:
break;
}
if (!success && plain)
{
chunk_free(plain);
}
memwipe(nonce.ptr, nonce.len);
return success;
}