diff options
Diffstat (limited to 'src/peerinfo/peerinfo_api_notify.c')
-rw-r--r-- | src/peerinfo/peerinfo_api_notify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/peerinfo/peerinfo_api_notify.c b/src/peerinfo/peerinfo_api_notify.c index f5a076a204..af41b08f95 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, "peerinfo"); return NULL; } - nc = GNUNET_malloc (sizeof (struct GNUNET_PEERINFO_NotifyContext)); + nc = GNUNET_new (struct GNUNET_PEERINFO_NotifyContext); nc->cfg = cfg; nc->client = client; nc->callback = callback; |