- replace deprecated INCLUDES with AM_CPPFLAGS
[oweals/gnunet.git] / src / dv / dv_api.c
index cd12a0a214cda2a11b37e3abd77a06f82f18d5e3..a24965e84b3a9e9f2373d6faff66d46b6e6223f8 100644 (file)
@@ -516,7 +516,7 @@ GNUNET_DV_service_connect (const struct GNUNET_CONFIGURATION_Handle *cfg,
 {
   struct GNUNET_DV_ServiceHandle *sh;
 
-  sh = GNUNET_malloc (sizeof (struct GNUNET_DV_ServiceHandle));
+  sh = GNUNET_new (struct GNUNET_DV_ServiceHandle);
   sh->cfg = cfg;
   sh->cls = cls;
   sh->connect_cb = connect_cb;