aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/regexp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-13 12:57:43 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-13 12:58:00 +0100
commit91dfff252afea8e37a4a0c10c723662fd4a6aa98 (patch)
tree9e98b12a2f2231b10c81b0d97de9681828288110 /src/libutil/regexp.c
parent1e29b7b44d1ee16ec397b4e1b99a7b19fb3de3af (diff)
downloadrspamd-91dfff252afea8e37a4a0c10c723662fd4a6aa98.tar.gz
rspamd-91dfff252afea8e37a4a0c10c723662fd4a6aa98.zip
[Fix] Plug memory leak in regexp desctructor
Diffstat (limited to 'src/libutil/regexp.c')
-rw-r--r--src/libutil/regexp.c2
1 files changed, 2 insertions, 0 deletions
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);
}
}