-must notify client on timeout
[oweals/gnunet.git] / src / block / plugin_block_template.c
index 7c62de6b1b4eeb3ca50dbcdabf487848a4a253d3..18809b1b18acc5acad5408d54cef19544ef6382d 100644 (file)
@@ -111,7 +111,7 @@ libgnunet_plugin_block_template_init (void *cls)
   };
   struct GNUNET_BLOCK_PluginFunctions *api;
 
-  api = GNUNET_malloc (sizeof (struct GNUNET_BLOCK_PluginFunctions));
+  api = GNUNET_new (struct GNUNET_BLOCK_PluginFunctions);
   api->evaluate = &block_plugin_template_evaluate;
   api->get_key = &block_plugin_template_get_key;
   api->types = types;