summaryrefslogtreecommitdiff
path: root/src/experimentation/gnunet-daemon-experimentation_nodes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/experimentation/gnunet-daemon-experimentation_nodes.c')
-rw-r--r--src/experimentation/gnunet-daemon-experimentation_nodes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/experimentation/gnunet-daemon-experimentation_nodes.c b/src/experimentation/gnunet-daemon-experimentation_nodes.c
index aa8a0dbbe..65b2d9c38 100644
--- a/src/experimentation/gnunet-daemon-experimentation_nodes.c
+++ b/src/experimentation/gnunet-daemon-experimentation_nodes.c
@@ -1044,7 +1044,7 @@ GED_nodes_send_start_ack (struct Node *n, struct Experiment *e)
"Sending %s for experiment request to peer `%s' for experiment `%s'\n",
"START_ACK" ,GNUNET_i2s(&n->id), e->name);
- e_ctx = GNUNET_malloc (sizeof (struct NodeComCtx));
+ e_ctx = GNUNET_new (struct NodeComCtx);
e_ctx->n = n;
e_ctx->e = e;
e_ctx->size = sizeof (struct GED_start_ack_message) + strlen (e->name) + 1;
@@ -1071,7 +1071,7 @@ GED_nodes_send_start (struct Node *n, struct Experiment *e)
"Sending %s for experiment request to peer `%s' for experiment `%s'\n",
"START", GNUNET_i2s(&n->id), e->name);
- e_ctx = GNUNET_malloc (sizeof (struct NodeComCtx));
+ e_ctx = GNUNET_new (struct NodeComCtx);
e_ctx->n = n;
e_ctx->e = e;
e_ctx->size = sizeof (struct GED_start_message) + strlen (e->name) + 1;