Skip to content

Commit

Permalink
lib-sieve: script storage: Fix leaking mailbox if opening INBOX fails
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen authored and stephanbosch committed Aug 7, 2018
1 parent e9ac553 commit e9779f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib-sieve/sieve-storage-sync.c
Expand Up @@ -69,6 +69,7 @@ static int sieve_storage_sync_transaction_begin
sieve_storage_sys_warning(storage, "sync: "
"Failed to open user INBOX for attribute modifications: %s",
mailbox_get_last_error(inbox, &error));
mailbox_free(&inbox);
return -1;
}

Expand Down

0 comments on commit e9779f2

Please sign in to comment.