-fix tiny leak, doxygen
[oweals/gnunet.git] / src / core / gnunet-service-core_clients.c
index 5f745e3bc283e7e70bb8b84c09151e872a55b1ec..f6574b7f9395b69dcf069e914f0b188d87515379 100644 (file)
@@ -377,7 +377,7 @@ handle_client_send_request (void *cls, struct GNUNET_SERVER_Client *client,
   if (car == NULL)
   {
     /* create new entry */
-    car = GNUNET_malloc (sizeof (struct GSC_ClientActiveRequest));
+    car = GNUNET_new (struct GSC_ClientActiveRequest);
     GNUNET_assert (GNUNET_OK ==
                    GNUNET_CONTAINER_multipeermap_put (c->requests,
                                                       &req->peer,