]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Cleanup statement correctly
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 1 Dec 2015 21:00:33 +0000 (21:00 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 1 Dec 2015 21:00:33 +0000 (21:00 +0000)
src/libserver/fuzzy_backend.c

index a73de509cb372416e24cc0c4468c83ec1657345e..83893e77a1cfc30aeaf9e5a6108be9e6897e45c1 100644 (file)
@@ -562,10 +562,10 @@ rspamd_fuzzy_backend_check (struct rspamd_fuzzy_backend *backend,
                                        rep.flag = sqlite3_column_int (
                                                        prepared_stmts[RSPAMD_FUZZY_BACKEND_GET_DIGEST_BY_ID].stmt, 3);
                                }
-
-                               rspamd_fuzzy_backend_cleanup_stmt (backend,
-                                               RSPAMD_FUZZY_BACKEND_GET_DIGEST_BY_ID);
                        }
+
+                       rspamd_fuzzy_backend_cleanup_stmt (backend,
+                                       RSPAMD_FUZZY_BACKEND_GET_DIGEST_BY_ID);
                }
        }