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
+1 -1
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;
}