freeing what could not be added keysync
authorVolker Birk <vb@pep.foundation>
Wed, 24 Aug 2016 08:49:09 +0200
branchkeysync
changeset 108059f4dd88605c
parent 1079 5253962c6bf7
child 1081 a286ba6c04ee
freeing what could not be added
src/keymanagement.c
     1.1 --- a/src/keymanagement.c	Wed Aug 24 08:48:24 2016 +0200
     1.2 +++ b/src/keymanagement.c	Wed Aug 24 08:49:09 2016 +0200
     1.3 @@ -764,8 +764,10 @@
     1.4                  ident->flags = flags;
     1.5  
     1.6                  _bl = identity_list_add(_bl, ident);
     1.7 -                if (_bl == NULL)
     1.8 +                if (_bl == NULL) {
     1.9 +                    free_identity(ident);
    1.10                      goto enomem;
    1.11 +                }
    1.12                  
    1.13                  break;
    1.14