diff options
Diffstat (limited to 'src/datacache/plugin_datacache_heap.c')
-rw-r--r-- | src/datacache/plugin_datacache_heap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datacache/plugin_datacache_heap.c b/src/datacache/plugin_datacache_heap.c index 85cf9487e..9689d4f05 100644 --- a/src/datacache/plugin_datacache_heap.c +++ b/src/datacache/plugin_datacache_heap.c | |||
@@ -393,12 +393,12 @@ libgnunet_plugin_datacache_heap_init (void *cls) | |||
393 | struct GNUNET_DATACACHE_PluginFunctions *api; | 393 | struct GNUNET_DATACACHE_PluginFunctions *api; |
394 | struct Plugin *plugin; | 394 | struct Plugin *plugin; |
395 | 395 | ||
396 | plugin = GNUNET_malloc (sizeof (struct Plugin)); | 396 | plugin = GNUNET_new (struct Plugin); |
397 | plugin->map = GNUNET_CONTAINER_multihashmap_create (1024, /* FIXME: base on quota! */ | 397 | plugin->map = GNUNET_CONTAINER_multihashmap_create (1024, /* FIXME: base on quota! */ |
398 | GNUNET_YES); | 398 | GNUNET_YES); |
399 | plugin->heap = GNUNET_CONTAINER_heap_create (GNUNET_CONTAINER_HEAP_ORDER_MIN); | 399 | plugin->heap = GNUNET_CONTAINER_heap_create (GNUNET_CONTAINER_HEAP_ORDER_MIN); |
400 | plugin->env = env; | 400 | plugin->env = env; |
401 | api = GNUNET_malloc (sizeof (struct GNUNET_DATACACHE_PluginFunctions)); | 401 | api = GNUNET_new (struct GNUNET_DATACACHE_PluginFunctions); |
402 | api->cls = plugin; | 402 | api->cls = plugin; |
403 | api->get = &heap_plugin_get; | 403 | api->get = &heap_plugin_get; |
404 | api->put = &heap_plugin_put; | 404 | api->put = &heap_plugin_put; |