aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/dkim.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-28 12:28:38 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-10-28 12:28:38 +0100
commit4656f5525d110e3951672ad66a29cfb395f7d32f (patch)
tree4d53af775cc1b00e6d1fc67dbc25ce7e7c2bde79 /src/libserver/dkim.c
parentaed03ec17f71d9bf9fcb43c0463b834331623101 (diff)
downloadrspamd-4656f5525d110e3951672ad66a29cfb395f7d32f.tar.gz
rspamd-4656f5525d110e3951672ad66a29cfb395f7d32f.zip
[Minor] More g_slice cleanups
Diffstat (limited to 'src/libserver/dkim.c')
-rw-r--r--src/libserver/dkim.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libserver/dkim.c b/src/libserver/dkim.c
index 12bc146ab..0f296eaab 100644
--- a/src/libserver/dkim.c
+++ b/src/libserver/dkim.c
@@ -1184,9 +1184,9 @@ rspamd_dkim_make_key (rspamd_dkim_context_t *ctx, const gchar *keydata,
return NULL;
}
- key = g_slice_alloc0 (sizeof (rspamd_dkim_key_t));
+ key = g_malloc0 (sizeof (rspamd_dkim_key_t));
REF_INIT_RETAIN (key, rspamd_dkim_key_free);
- key->keydata = g_slice_alloc0 (keylen + 1);
+ key->keydata = g_malloc0 (keylen + 1);
key->decoded_len = keylen;
key->keylen = keylen;
key->type = type;
@@ -1273,8 +1273,8 @@ rspamd_dkim_key_free (rspamd_dkim_key_t *key)
BIO_free (key->key_bio);
}
- g_slice_free1 (key->keylen, key->keydata);
- g_slice_free1 (sizeof (rspamd_dkim_key_t), key);
+ g_free (key->keydata);
+ g_free (key);
}
void
@@ -1300,7 +1300,7 @@ rspamd_dkim_sign_key_free (rspamd_dkim_sign_key_t *key)
}
}
- g_slice_free1 (sizeof (rspamd_dkim_sign_key_t), key);
+ g_free (key);
}
static rspamd_dkim_key_t *
@@ -2511,7 +2511,7 @@ rspamd_dkim_sign_key_load (const gchar *what, gsize len,
}
}
- nkey = g_slice_alloc0 (sizeof (*nkey));
+ nkey = g_malloc0 (sizeof (*nkey));
nkey->type = type;
nkey->mtime = mtime;