summaryrefslogtreecommitdiff
path: root/src/util/server_tc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/server_tc.c')
-rw-r--r--src/util/server_tc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/server_tc.c b/src/util/server_tc.c
index 780b5f003..5324a6ab9 100644
--- a/src/util/server_tc.c
+++ b/src/util/server_tc.c
@@ -127,7 +127,7 @@ GNUNET_SERVER_transmit_context_create (struct GNUNET_SERVER_Client *client)
struct GNUNET_SERVER_TransmitContext *tc;
GNUNET_assert (NULL != client);
- tc = GNUNET_malloc (sizeof (struct GNUNET_SERVER_TransmitContext));
+ tc = GNUNET_new (struct GNUNET_SERVER_TransmitContext);
GNUNET_SERVER_client_keep (client);
tc->client = client;
return tc;