src/sync_send_actions.c
branchkeysync
changeset 1091 0571ce4b97a2
parent 1075 6ac3fd936e93
child 1097 6248fe9519df
     1.1 --- a/src/sync_send_actions.c	Mon Aug 29 15:02:16 2016 +0200
     1.2 +++ b/src/sync_send_actions.c	Mon Aug 29 17:39:35 2016 +0200
     1.3 @@ -46,12 +46,13 @@
     1.4          goto error;
     1.5  
     1.6      free_DeviceGroup_Protocol_msg(msg);
     1.7 +    free_identity(partner);
     1.8      return PEP_STATUS_OK;
     1.9  
    1.10  enomem:
    1.11      status = PEP_OUT_OF_MEMORY;
    1.12  error:
    1.13 -    free(partner);
    1.14 +    free_identity(partner);
    1.15      free_DeviceGroup_Protocol_msg(msg);
    1.16      return status;
    1.17  }
    1.18 @@ -89,12 +90,13 @@
    1.19          goto error;
    1.20  
    1.21      free_DeviceGroup_Protocol_msg(msg);
    1.22 +    free_identity(partner);
    1.23      return PEP_STATUS_OK;
    1.24  
    1.25  enomem:
    1.26      status = PEP_OUT_OF_MEMORY;
    1.27  error:
    1.28 -    free(partner);
    1.29 +    free_identity(partner);
    1.30      free_DeviceGroup_Protocol_msg(msg);
    1.31      return status;
    1.32  }
    1.33 @@ -140,12 +142,13 @@
    1.34  
    1.35      free_identity_list(kl);
    1.36      free_DeviceGroup_Protocol_msg(msg);
    1.37 +    free_identity(partner);
    1.38      return PEP_STATUS_OK;
    1.39  
    1.40  enomem:
    1.41      status = PEP_OUT_OF_MEMORY;
    1.42  error:
    1.43 -    free(partner);
    1.44 +    free_identity(partner);
    1.45      free_DeviceGroup_Protocol_msg(msg);
    1.46      free_identity_list(kl);
    1.47      return status;