Skip to content

Commit

Permalink
plugins: imap-filter-sieve: Fixed segfault occurring at cleanup.
Browse files Browse the repository at this point in the history
Caused by cherry-picking for master to v2.2. The str_free() function does not
accept NULL in v2.2.
  • Loading branch information
stephanbosch authored and sirainen committed May 22, 2018
1 parent d3557a3 commit 605448d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/imap-filter-sieve/imap-filter-sieve.c
Expand Up @@ -248,7 +248,8 @@ void imap_filter_sieve_context_free(struct imap_filter_sieve_context **_sctx)
sieve_script_unref(&scripts[i].script);
}

str_free(&sctx->errors);
if (sctx->errors != NULL)
str_free(&sctx->errors);
}

/*
Expand Down

0 comments on commit 605448d

Please sign in to comment.