print active/inactive information
[oweals/gnunet.git] / src / peerinfo / peerinfo_api_notify.c
index f5a076a20460fac413056e642fc08593adf96029..af41b08f95d834dc64eb34b5cb192794a34e9345 100644 (file)
@@ -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;