diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-29 12:25:45 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-29 12:25:45 +0000 |
commit | 4beb2f2970d709169db316483a6bc547fdcaba8d (patch) | |
tree | 66c3f0e934b8eb4905e408356167bec326ebfa8e /src/rspamadm/lua_repl.c | |
parent | a47922458216ce76eb5c591096cb8d4bd41f03c3 (diff) | |
download | rspamd-4beb2f2970d709169db316483a6bc547fdcaba8d.tar.gz rspamd-4beb2f2970d709169db316483a6bc547fdcaba8d.zip |
[Minor] Final stage of g_slice removal
Diffstat (limited to 'src/rspamadm/lua_repl.c')
-rw-r--r-- | src/rspamadm/lua_repl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rspamadm/lua_repl.c b/src/rspamadm/lua_repl.c index 96b6940ae..f959c6bf3 100644 --- a/src/rspamadm/lua_repl.c +++ b/src/rspamadm/lua_repl.c @@ -548,7 +548,7 @@ rspamadm_lua_accept_cb (gint fd, short what, void *arg) return; } - session = g_slice_alloc0 (sizeof (*session)); + session = g_malloc0 (sizeof (*session)); session->rt = ctx->rt; session->ctx = ctx; session->addr = addr; @@ -571,7 +571,7 @@ rspamadm_lua_finish_handler (struct rspamd_http_connection_entry *conn_ent) { struct rspamadm_lua_repl_session *session = conn_ent->ud; - g_slice_free1 (sizeof (*session), session); + g_free (session); } /* @@ -740,7 +740,7 @@ rspamadm_lua (gint argc, gchar **argv) } ev_base = event_init (); - ctx = g_slice_alloc0 (sizeof (*ctx)); + ctx = g_malloc0 (sizeof (*ctx)); http = rspamd_http_router_new (rspamadm_lua_error_handler, rspamadm_lua_finish_handler, NULL, ev_base, @@ -758,7 +758,7 @@ rspamadm_lua (gint argc, gchar **argv) if (fd != -1) { struct event *ev; - ev = g_slice_alloc0 (sizeof (*ev)); + ev = g_malloc0 (sizeof (*ev)); event_set (ev, fd, EV_READ|EV_PERSIST, rspamadm_lua_accept_cb, ctx); event_base_set (ev_base, ev); |