Merge pull request #6420 from mpg/fix-assert-alloc-usage-228

backport 2.28 - Fix usage of ASSERT_ALLOC()
This commit is contained in:
Manuel Pégourié-Gonnard 2022-10-17 12:10:55 +02:00 committed by GitHub
commit e5ae132d87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -779,7 +779,7 @@ void free_named_data_list( int length )
for( i = 0; i < length; i++ )
{
mbedtls_asn1_named_data *new = NULL;
ASSERT_ALLOC( new, sizeof( mbedtls_asn1_named_data ) );
ASSERT_ALLOC( new, 1 );
new->next = head;
head = new;
}