diff options
Diffstat (limited to 'src/mysql')
-rw-r--r-- | src/mysql/mysql.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mysql/mysql.c b/src/mysql/mysql.c index 098213b33..22804d474 100644 --- a/src/mysql/mysql.c +++ b/src/mysql/mysql.c | |||
@@ -292,7 +292,7 @@ GNUNET_MYSQL_context_create (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
292 | { | 292 | { |
293 | struct GNUNET_MYSQL_Context *mc; | 293 | struct GNUNET_MYSQL_Context *mc; |
294 | 294 | ||
295 | mc = GNUNET_malloc (sizeof (struct GNUNET_MYSQL_Context)); | 295 | mc = GNUNET_new (struct GNUNET_MYSQL_Context); |
296 | mc->cfg = cfg; | 296 | mc->cfg = cfg; |
297 | mc->section = section; | 297 | mc->section = section; |
298 | mc->cnffile = get_my_cnf_path (cfg, section); | 298 | mc->cnffile = get_my_cnf_path (cfg, section); |
@@ -365,7 +365,7 @@ GNUNET_MYSQL_statement_prepare (struct GNUNET_MYSQL_Context *mc, | |||
365 | { | 365 | { |
366 | struct GNUNET_MYSQL_StatementHandle *sh; | 366 | struct GNUNET_MYSQL_StatementHandle *sh; |
367 | 367 | ||
368 | sh = GNUNET_malloc (sizeof (struct GNUNET_MYSQL_StatementHandle)); | 368 | sh = GNUNET_new (struct GNUNET_MYSQL_StatementHandle); |
369 | sh->query = GNUNET_strdup (query); | 369 | sh->query = GNUNET_strdup (query); |
370 | GNUNET_CONTAINER_DLL_insert (mc->shead, mc->stail, sh); | 370 | GNUNET_CONTAINER_DLL_insert (mc->shead, mc->stail, sh); |
371 | return sh; | 371 | return sh; |