aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-05 13:47:31 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-05 13:47:31 +0000
commita66c2ff0de40276f14586b67cc4afa6ff2f4c11f (patch)
tree98323f2b5452e261c3352af2334db6fa0f26f500
parentcf7e2640c46b34a55df8248d33f7b372aa11089b (diff)
downloadrspamd-a66c2ff0de40276f14586b67cc4afa6ff2f4c11f.tar.gz
rspamd-a66c2ff0de40276f14586b67cc4afa6ff2f4c11f.zip
[Minor] Fix error path
-rw-r--r--src/libserver/re_cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c
index 72aa7a798..3c6f5f9e5 100644
--- a/src/libserver/re_cache.c
+++ b/src/libserver/re_cache.c
@@ -2079,12 +2079,12 @@ rspamd_re_cache_compile_timer_cb (EV_P_ ev_timer *w, int revents )
rspamd_re_cache_type_to_string (re_class->type),
(gint)g_hash_table_size (re_class->re),
path);
- unlink (path);
- close (fd);
- rspamd_re_cache_compile_err (EV_A_ w, err, cbdata);
unlink (path);
close (fd);
+ rspamd_re_cache_compile_err (EV_A_ w, err, cbdata);
+
+ return;
}
/* Continue process */