summaryrefslogtreecommitdiff
path: root/src/env/env.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/env/env.c')
-rw-r--r--src/env/env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/env/env.c b/src/env/env.c
index 33d12c01e..1a8c1a568 100644
--- a/src/env/env.c
+++ b/src/env/env.c
@@ -68,7 +68,7 @@ GNUNET_ENV_environment_add_mod (struct GNUNET_ENV_Environment *env,
enum GNUNET_ENV_Operator oper, const char *name,
const void *value, size_t value_size)
{
- struct GNUNET_ENV_Modifier *mod = GNUNET_malloc (sizeof (*mod));
+ struct GNUNET_ENV_Modifier *mod = GNUNET_new (struct GNUNET_ENV_Modifier);
mod->oper = oper;
mod->name = name;
mod->value = value;