From 093a54c33ddbd35a1d3291b6742d651074c23019 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 17 Mar 2016 10:14:30 +0000 Subject: [PATCH] [Fix] Allocate ids array in case of hyperscan --- src/libutil/map.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libutil/map.c b/src/libutil/map.c index ffb426ea0..b40d27bd0 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -1551,6 +1551,7 @@ rspamd_re_map_finalize (struct rspamd_regexp_map *re_map) re_map->patterns = g_new (const gchar *, re_map->regexps->len); re_map->flags = g_new (gint, re_map->regexps->len); + re_map->ids = g_new (gint, re_map->regexps->len); for (i = 0; i < re_map->regexps->len; i ++) { re = g_ptr_array_index (re_map->regexps, i); -- 2.39.5