summaryrefslogtreecommitdiff
path: root/src/datacache/datacache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/datacache/datacache.c')
-rw-r--r--src/datacache/datacache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/datacache/datacache.c b/src/datacache/datacache.c
index c96432946..d7adb8b4d 100644
--- a/src/datacache/datacache.c
+++ b/src/datacache/datacache.c
@@ -153,7 +153,7 @@ GNUNET_DATACACHE_create (const struct GNUNET_CONFIGURATION_Handle *cfg,
}
bf_size = quota / 32; /* 8 bit per entry, 1 bit per 32 kb in DB */
- ret = GNUNET_malloc (sizeof (struct GNUNET_DATACACHE_Handle));
+ ret = GNUNET_new (struct GNUNET_DATACACHE_Handle);
if (GNUNET_YES !=
GNUNET_CONFIGURATION_get_value_yesno (cfg, section, "DISABLE_BF"))