- moved timeout handling responsibility from for nat tests from caller to the library
[oweals/gnunet.git] / src / datacache / datacache.c
index c96432946d12709f8ea31b58a4f90a54147d819b..d7adb8b4d5e48808c3f2845d74a1613d6fff8eee 100644 (file)
@@ -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"))