aboutsummaryrefslogtreecommitdiff
path: root/src/datacache/plugin_datacache_postgres.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/datacache/plugin_datacache_postgres.c')
-rw-r--r--src/datacache/plugin_datacache_postgres.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datacache/plugin_datacache_postgres.c b/src/datacache/plugin_datacache_postgres.c
index 6d7e28021..150a9d5dc 100644
--- a/src/datacache/plugin_datacache_postgres.c
+++ b/src/datacache/plugin_datacache_postgres.c
@@ -374,7 +374,7 @@ libgnunet_plugin_datacache_postgres_init (void *cls)
374 struct GNUNET_DATACACHE_PluginFunctions *api; 374 struct GNUNET_DATACACHE_PluginFunctions *api;
375 struct Plugin *plugin; 375 struct Plugin *plugin;
376 376
377 plugin = GNUNET_malloc (sizeof (struct Plugin)); 377 plugin = GNUNET_new (struct Plugin);
378 plugin->env = env; 378 plugin->env = env;
379 379
380 if (GNUNET_OK != init_connection (plugin)) 380 if (GNUNET_OK != init_connection (plugin))
@@ -383,7 +383,7 @@ libgnunet_plugin_datacache_postgres_init (void *cls)
383 return NULL; 383 return NULL;
384 } 384 }
385 385
386 api = GNUNET_malloc (sizeof (struct GNUNET_DATACACHE_PluginFunctions)); 386 api = GNUNET_new (struct GNUNET_DATACACHE_PluginFunctions);
387 api->cls = plugin; 387 api->cls = plugin;
388 api->get = &postgres_plugin_get; 388 api->get = &postgres_plugin_get;
389 api->put = &postgres_plugin_put; 389 api->put = &postgres_plugin_put;