- fix cli arg parse
[oweals/gnunet.git] / src / util / server_tc.c
index 780b5f0031753ecfca8fc2c486da24b92c1affc3..5324a6ab93bf4ba1b7fe0fbbac6305fba969595c 100644 (file)
@@ -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;