aboutsummaryrefslogtreecommitdiff
path: root/src/peerinfo/peerinfo_api_notify.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/peerinfo/peerinfo_api_notify.c')
-rw-r--r--src/peerinfo/peerinfo_api_notify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peerinfo/peerinfo_api_notify.c b/src/peerinfo/peerinfo_api_notify.c
index f5a076a20..af41b08f9 100644
--- a/src/peerinfo/peerinfo_api_notify.c
+++ b/src/peerinfo/peerinfo_api_notify.c
@@ -269,7 +269,7 @@ GNUNET_PEERINFO_notify (const struct GNUNET_CONFIGURATION_Handle *cfg,
269 "peerinfo"); 269 "peerinfo");
270 return NULL; 270 return NULL;
271 } 271 }
272 nc = GNUNET_malloc (sizeof (struct GNUNET_PEERINFO_NotifyContext)); 272 nc = GNUNET_new (struct GNUNET_PEERINFO_NotifyContext);
273 nc->cfg = cfg; 273 nc->cfg = cfg;
274 nc->client = client; 274 nc->client = client;
275 nc->callback = callback; 275 nc->callback = callback;