From 91dfff252afea8e37a4a0c10c723662fd4a6aa98 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 13 Oct 2016 12:57:43 +0100 Subject: [PATCH] [Fix] Plug memory leak in regexp desctructor --- src/libutil/regexp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libutil/regexp.c b/src/libutil/regexp.c index b6adce55f..4ced0debc 100644 --- a/src/libutil/regexp.c +++ b/src/libutil/regexp.c @@ -155,6 +155,8 @@ rspamd_regexp_dtor (rspamd_regexp_t *re) if (re->pattern) { g_free (re->pattern); } + + g_slice_free1 (sizeof (*re), re); } } -- 2.39.5