From 16c1f5d2dd9f8390f7fd48cbd46b4bc87639e746 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 13 Jan 2017 16:28:56 +0000 Subject: [PATCH] [Fix] Fix errors handling in fuzzy backend initialization --- src/libserver/fuzzy_backend.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libserver/fuzzy_backend.c b/src/libserver/fuzzy_backend.c index 3dec60c57..c9c16297d 100644 --- a/src/libserver/fuzzy_backend.c +++ b/src/libserver/fuzzy_backend.c @@ -304,6 +304,8 @@ rspamd_fuzzy_backend_create (struct event_base *ev_base, if ((bk->subr_ud = bk->subr->init (bk, config, cfg, err)) == NULL) { g_slice_free1 (sizeof (*bk), bk); + + return NULL; } return bk; -- 2.39.5