]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix error path
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 5 Feb 2020 13:47:31 +0000 (13:47 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 5 Feb 2020 13:47:31 +0000 (13:47 +0000)
src/libserver/re_cache.c

index 72aa7a798025485e80c694247ea4b9c79c5f1b31..3c6f5f9e5abeb74ee20c52ac493629340c299540 100644 (file)
@@ -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 */