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: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91dfff252afea8e37a4a0c10c723662fd4a6aa98;p=thirdparty%2Frspamd.git [Fix] Plug memory leak in regexp desctructor --- diff --git a/src/libutil/regexp.c b/src/libutil/regexp.c index b6adce55ff..4ced0debcb 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); } }