mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 22:55:39 +01:00
Merge pull request #4131 from paul-elliott-arm/fix_crypto_leak
Fix memory leak in error case in psa_crypto
This commit is contained in:
commit
59ad77032f
2
ChangeLog.d/fix_psa_crypto_leak.txt
Normal file
2
ChangeLog.d/fix_psa_crypto_leak.txt
Normal file
@ -0,0 +1,2 @@
|
||||
Bugfix
|
||||
* Fix a memory leak in an error case in psa_generate_derived_key_internal().
|
@ -5100,7 +5100,7 @@ static psa_status_t psa_generate_derived_key_internal(
|
||||
|
||||
status = psa_allocate_buffer_to_slot( slot, bytes );
|
||||
if( status != PSA_SUCCESS )
|
||||
return( status );
|
||||
goto exit;
|
||||
|
||||
slot->attr.bits = (psa_key_bits_t) bits;
|
||||
psa_key_attributes_t attributes = {
|
||||
|
Loading…
Reference in New Issue
Block a user