mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-12-24 17:41:01 +03:00
Use asn1_free_named_data_list() when relevant
This commit is contained in:
@@ -56,14 +56,8 @@ static int x509write_string_to_names( asn1_named_data **head, char *name )
|
||||
int in_tag = 1;
|
||||
asn1_named_data *cur;
|
||||
|
||||
// Clear existing chain if present
|
||||
//
|
||||
while( *head != NULL )
|
||||
{
|
||||
cur = *head;
|
||||
*head = cur->next;
|
||||
polarssl_free( cur );
|
||||
}
|
||||
/* Clear existing chain if present */
|
||||
asn1_free_named_data_list( head );
|
||||
|
||||
while( c <= end )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user