free authInPadded if alloc'd on early return

This commit is contained in:
Ruby Martin
2026-03-26 14:17:04 -06:00
parent a827a82ed3
commit 8b2fd34e95
+3
View File
@@ -10360,6 +10360,9 @@ static WARN_UNUSED_RESULT int wc_AesGcmDecrypt_STM32(
ret = wolfSSL_CryptHwMutexLock();
if (ret != 0) {
if (wasAlloc) {
XFREE(authInPadded, aes->heap, DYNAMIC_TYPE_TMP_BUFFER);
}
return ret;
}