fix #3275 with solution from https://gnunet.org/bugs/view.php?id=3275#c8029
[oweals/gnunet.git] / src / hostlist / hostlist-server.c
index 2cda6dd00df33dee3d25a9da1098f60118fca06d..ef4debc056290c4783b2ca9ac4d9a9ed5f848eea 100644 (file)
@@ -433,7 +433,7 @@ process_notify (void *cls, const struct GNUNET_PeerIdentity *peer,
   }
   else
   {
-    builder = GNUNET_malloc (sizeof (struct HostSet));
+    builder = GNUNET_new (struct HostSet);
   }
   GNUNET_assert (NULL != peerinfo);
   builder->pitr =