aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/re_cache.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-03-04 13:41:58 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-03-04 13:41:58 +0000
commitb13a39610c9007a1afa4d1dbf94d73a1a5b1269b (patch)
tree5d888f1c3c396e4ca8be6347b47990f664a9f1d1 /src/libserver/re_cache.c
parent3d80e66c8f8b734208d0eed314b406f309173286 (diff)
downloadrspamd-b13a39610c9007a1afa4d1dbf94d73a1a5b1269b.tar.gz
rspamd-b13a39610c9007a1afa4d1dbf94d73a1a5b1269b.zip
[Minor] One more mkstemp usage
Diffstat (limited to 'src/libserver/re_cache.c')
-rw-r--r--src/libserver/re_cache.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c
index c89536206..cbf76d1a9 100644
--- a/src/libserver/re_cache.c
+++ b/src/libserver/re_cache.c
@@ -1954,10 +1954,10 @@ rspamd_re_cache_compile_timer_cb (EV_P_ ev_timer *w, int revents )
g_hash_table_iter_init (&cit, re_class->re);
n = g_hash_table_size (re_class->re);
- hs_flags = g_malloc0 (sizeof (*hs_flags) * n);
- hs_ids = g_malloc (sizeof (*hs_ids) * n);
- hs_pats = g_malloc (sizeof (*hs_pats) * n);
- hs_exts = g_malloc0 (sizeof (*hs_exts) * n);
+ hs_flags = g_new0(guint, n);
+ hs_ids = g_new0(guint, n);
+ hs_pats = g_new0(char *, n);
+ hs_exts = g_new0(const hs_expr_ext_t *, n);
i = 0;
while (g_hash_table_iter_next (&cit, &k, &v)) {