mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-02-24 16:46:23 +01:00
Fix memory leak in mpi_core_ct_uint_table_lookup test
Signed-off-by: Janos Follath <janos.follath@arm.com>
This commit is contained in:
parent
88e3177fcc
commit
ef67d38bc0
|
|
@ -949,9 +949,9 @@ void mpi_core_ct_uint_table_lookup( int bitlen, int window_size )
|
|||
size_t count = ( (size_t) 1 ) << window_size;
|
||||
|
||||
mbedtls_mpi_uint *table = NULL;
|
||||
ASSERT_ALLOC( table, limbs * count );
|
||||
|
||||
mbedtls_mpi_uint *dest = NULL;
|
||||
|
||||
ASSERT_ALLOC( table, limbs * count );
|
||||
ASSERT_ALLOC( dest, limbs );
|
||||
|
||||
/*
|
||||
|
|
@ -986,6 +986,7 @@ void mpi_core_ct_uint_table_lookup( int bitlen, int window_size )
|
|||
}
|
||||
|
||||
exit:
|
||||
;
|
||||
mbedtls_free(table);
|
||||
mbedtls_free(dest);
|
||||
}
|
||||
/* END_CASE */
|
||||
|
|
|
|||
Loading…
Reference in a new issue