freeing what could not be added

doc_update_sequoia
Volker Birk 7 years ago
parent f6a473389c
commit ccb25c2ea6

@ -764,8 +764,10 @@ DYNAMIC_API PEP_STATUS own_identities_retrieve(
ident->flags = flags;
_bl = identity_list_add(_bl, ident);
if (_bl == NULL)
if (_bl == NULL) {
free_identity(ident);
goto enomem;
}
break;

Loading…
Cancel
Save