diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-12-09 20:58:09 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-12-09 20:58:09 +0000 |
commit | 020dbe76121bc7f68093ccfd14a9f44f7871d04a (patch) | |
tree | 981acb69c489a43a452778f05963bcb2f74971ba /src/fuzzy_storage.c | |
parent | 228b958489922e08eedfeaf545b4410aafed45da (diff) | |
download | rspamd-020dbe76121bc7f68093ccfd14a9f44f7871d04a.tar.gz rspamd-020dbe76121bc7f68093ccfd14a9f44f7871d04a.zip |
[Minor] Do not free empty error
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r-- | src/fuzzy_storage.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index 3b3fce36f..07d32fd30 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -2724,7 +2724,9 @@ start_fuzzy (struct rspamd_worker *worker) if ((ctx->backend = rspamd_fuzzy_backend_create (ctx->ev_base, worker->cf->options, cfg, &err)) == NULL) { msg_err ("cannot open backend: %e", err); - g_error_free (err); + if (err) { + g_error_free (err); + } exit (EXIT_SUCCESS); } |