aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/rspamc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/rspamc.c')
-rw-r--r--src/client/rspamc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/rspamc.c b/src/client/rspamc.c
index 08c23a1b8..bf13acc68 100644
--- a/src/client/rspamc.c
+++ b/src/client/rspamc.c
@@ -1572,7 +1572,7 @@ rspamc_client_cb (struct rspamd_client_connection *conn,
rspamd_client_destroy (conn);
g_free (cbdata->filename);
- g_slice_free1 (sizeof (struct rspamc_callback_data), cbdata);
+ g_free (cbdata);
}
static void
@@ -1623,7 +1623,7 @@ rspamc_process_input (struct event_base *ev_base, struct rspamc_command *cmd,
conn = rspamd_client_init (ev_base, hostbuf, port, timeout, key);
if (conn != NULL) {
- cbdata = g_slice_alloc (sizeof (struct rspamc_callback_data));
+ cbdata = g_malloc0 (sizeof (struct rspamc_callback_data));
cbdata->cmd = cmd;
cbdata->filename = g_strdup (name);