From: Vsevolod Stakhov Date: Thu, 13 Oct 2016 11:57:43 +0000 (+0100) Subject: [Fix] Plug memory leak in regexp desctructor X-Git-Tag: 1.4.0~270 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=91dfff252afea8e37a4a0c10c723662fd4a6aa98;p=rspamd.git [Fix] Plug memory leak in regexp desctructor --- 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); } }