mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-25 09:39:14 +00:00
Use asn1_free_named_data_list() when relevant
This commit is contained in:
parent
1c3853b953
commit
da7317ed00
1 changed files with 2 additions and 8 deletions
|
@ -56,14 +56,8 @@ static int x509write_string_to_names( asn1_named_data **head, char *name )
|
||||||
int in_tag = 1;
|
int in_tag = 1;
|
||||||
asn1_named_data *cur;
|
asn1_named_data *cur;
|
||||||
|
|
||||||
// Clear existing chain if present
|
/* Clear existing chain if present */
|
||||||
//
|
asn1_free_named_data_list( head );
|
||||||
while( *head != NULL )
|
|
||||||
{
|
|
||||||
cur = *head;
|
|
||||||
*head = cur->next;
|
|
||||||
polarssl_free( cur );
|
|
||||||
}
|
|
||||||
|
|
||||||
while( c <= end )
|
while( c <= end )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue