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/transport/transport_api_address_to_string.c | |
parent | 92fd84dc7ef98452f848a62677c61a2b80b5835e (diff) | |
download | gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.tar.gz gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.zip |
malloc -> new
Diffstat (limited to 'src/transport/transport_api_address_to_string.c')
-rw-r--r-- | src/transport/transport_api_address_to_string.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport/transport_api_address_to_string.c b/src/transport/transport_api_address_to_string.c index 94c9ac45a..0fb0623dc 100644 --- a/src/transport/transport_api_address_to_string.c +++ b/src/transport/transport_api_address_to_string.c | |||
@@ -152,7 +152,7 @@ GNUNET_TRANSPORT_address_to_string (const struct GNUNET_CONFIGURATION_Handle | |||
152 | memcpy (addrbuf, address->address, alen); | 152 | memcpy (addrbuf, address->address, alen); |
153 | memcpy (&addrbuf[alen], address->transport_name, slen); | 153 | memcpy (&addrbuf[alen], address->transport_name, slen); |
154 | 154 | ||
155 | alc = GNUNET_malloc (sizeof (struct GNUNET_TRANSPORT_AddressToStringContext)); | 155 | alc = GNUNET_new (struct GNUNET_TRANSPORT_AddressToStringContext); |
156 | alc->cb = aluc; | 156 | alc->cb = aluc; |
157 | alc->cb_cls = aluc_cls; | 157 | alc->cb_cls = aluc_cls; |
158 | alc->timeout = GNUNET_TIME_relative_to_absolute (timeout); | 158 | alc->timeout = GNUNET_TIME_relative_to_absolute (timeout); |