diff options
Diffstat (limited to 'src/peerinfo/peerinfo_api.c')
-rw-r--r-- | src/peerinfo/peerinfo_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/peerinfo/peerinfo_api.c b/src/peerinfo/peerinfo_api.c index 794060487..716802389 100644 --- a/src/peerinfo/peerinfo_api.c +++ b/src/peerinfo/peerinfo_api.c | |||
@@ -201,7 +201,7 @@ GNUNET_PEERINFO_connect (const struct GNUNET_CONFIGURATION_Handle *cfg) | |||
201 | { | 201 | { |
202 | struct GNUNET_PEERINFO_Handle *h; | 202 | struct GNUNET_PEERINFO_Handle *h; |
203 | 203 | ||
204 | h = GNUNET_malloc (sizeof (struct GNUNET_PEERINFO_Handle)); | 204 | h = GNUNET_new (struct GNUNET_PEERINFO_Handle); |
205 | h->client = GNUNET_CLIENT_connect ("peerinfo", cfg); | 205 | h->client = GNUNET_CLIENT_connect ("peerinfo", cfg); |
206 | h->cfg = cfg; | 206 | h->cfg = cfg; |
207 | return h; | 207 | return h; |
@@ -708,7 +708,7 @@ GNUNET_PEERINFO_iterate (struct GNUNET_PEERINFO_Handle *h, | |||
708 | struct GNUNET_PEERINFO_IteratorContext *ic; | 708 | struct GNUNET_PEERINFO_IteratorContext *ic; |
709 | struct GNUNET_PEERINFO_AddContext *ac; | 709 | struct GNUNET_PEERINFO_AddContext *ac; |
710 | 710 | ||
711 | ic = GNUNET_malloc (sizeof (struct GNUNET_PEERINFO_IteratorContext)); | 711 | ic = GNUNET_new (struct GNUNET_PEERINFO_IteratorContext); |
712 | if (NULL == peer) | 712 | if (NULL == peer) |
713 | { | 713 | { |
714 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 714 | LOG (GNUNET_ERROR_TYPE_DEBUG, |