Skip to content

Commit

Permalink
mail-crypt-acl: Fix memory leak when updating ACLs
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Aug 22, 2018
1 parent 9140a10 commit 74c7939
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/mail-crypt/mail-crypt-acl-plugin.c
Expand Up @@ -221,6 +221,8 @@ mail_crypt_acl_update_private_key(struct mailbox *src_box,
dest_user->username,
&keys, error_r) < 0)
ret = -1;
if (key != NULL)
dcrypt_key_unref_public(&key);

if (ret >= 0) {
array_foreach_modifiable(&keys, keyp) {
Expand Down

0 comments on commit 74c7939

Please sign in to comment.