- fix error messages
[oweals/gnunet.git] / src / arm / test_exponential_backoff.c
index 0561c3ea83b20909a8eced836f537096b447de1a..7a552cc7c7f96c8bd383df908b675ecba3565312 100644 (file)
@@ -214,7 +214,7 @@ do_nothing_service_shutdown (struct GNUNET_CLIENT_Connection *sock,
 {
   struct ShutdownContext *shutdown_ctx;
 
-  shutdown_ctx = GNUNET_malloc (sizeof (struct ShutdownContext));
+  shutdown_ctx = GNUNET_new (struct ShutdownContext);
   shutdown_ctx->cont = cont;
   shutdown_ctx->cont_cls = cont_cls;
   shutdown_ctx->sock = sock;