aboutsummaryrefslogtreecommitdiff
path: root/src/arm/test_exponential_backoff.c
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2013-12-19 06:00:23 +0000
committerLRN <lrn1986@gmail.com>2013-12-19 06:00:23 +0000
commite0ca7357cd0bfedc5c29cb731b56279fef8da059 (patch)
treeecfd47cf59bc00e656b53fd59c58f5038e342d65 /src/arm/test_exponential_backoff.c
parent92fd84dc7ef98452f848a62677c61a2b80b5835e (diff)
downloadgnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.tar.gz
gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.zip
malloc -> new
Diffstat (limited to 'src/arm/test_exponential_backoff.c')
-rw-r--r--src/arm/test_exponential_backoff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arm/test_exponential_backoff.c b/src/arm/test_exponential_backoff.c
index 0561c3ea8..7a552cc7c 100644
--- a/src/arm/test_exponential_backoff.c
+++ b/src/arm/test_exponential_backoff.c
@@ -214,7 +214,7 @@ do_nothing_service_shutdown (struct GNUNET_CLIENT_Connection *sock,
214{ 214{
215 struct ShutdownContext *shutdown_ctx; 215 struct ShutdownContext *shutdown_ctx;
216 216
217 shutdown_ctx = GNUNET_malloc (sizeof (struct ShutdownContext)); 217 shutdown_ctx = GNUNET_new (struct ShutdownContext);
218 shutdown_ctx->cont = cont; 218 shutdown_ctx->cont = cont;
219 shutdown_ctx->cont_cls = cont_cls; 219 shutdown_ctx->cont_cls = cont_cls;
220 shutdown_ctx->sock = sock; 220 shutdown_ctx->sock = sock;