diff options
author | LRN <lrn1986@gmail.com> | 2013-12-19 06:00:23 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-12-19 06:00:23 +0000 |
commit | e0ca7357cd0bfedc5c29cb731b56279fef8da059 (patch) | |
tree | ecfd47cf59bc00e656b53fd59c58f5038e342d65 /src/testbed/gnunet-helper-testbed.c | |
parent | 92fd84dc7ef98452f848a62677c61a2b80b5835e (diff) | |
download | gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.tar.gz gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.zip |
malloc -> new
Diffstat (limited to 'src/testbed/gnunet-helper-testbed.c')
-rw-r--r-- | src/testbed/gnunet-helper-testbed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testbed/gnunet-helper-testbed.c b/src/testbed/gnunet-helper-testbed.c index 4c68b2cd4..e8c70a354 100644 --- a/src/testbed/gnunet-helper-testbed.c +++ b/src/testbed/gnunet-helper-testbed.c | |||
@@ -480,7 +480,7 @@ tokenizer_cb (void *cls, void *client, | |||
480 | xconfig_size = | 480 | xconfig_size = |
481 | GNUNET_TESTBED_compress_config_ (config, config_size, &xconfig); | 481 | GNUNET_TESTBED_compress_config_ (config, config_size, &xconfig); |
482 | GNUNET_free (config); | 482 | GNUNET_free (config); |
483 | wc = GNUNET_malloc (sizeof (struct WriteContext)); | 483 | wc = GNUNET_new (struct WriteContext); |
484 | wc->length = xconfig_size + sizeof (struct GNUNET_TESTBED_HelperReply); | 484 | wc->length = xconfig_size + sizeof (struct GNUNET_TESTBED_HelperReply); |
485 | reply = GNUNET_realloc (xconfig, wc->length); | 485 | reply = GNUNET_realloc (xconfig, wc->length); |
486 | memmove (&reply[1], reply, xconfig_size); | 486 | memmove (&reply[1], reply, xconfig_size); |