- log
[oweals/gnunet.git] / src / arm / arm_monitor_api.c
index f8d41e7908f0161c0519e36cfa222fbc2ed0321e..676543f266792b3844782be22c36f15471bc32d6 100644 (file)
@@ -167,7 +167,7 @@ init_timeout_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
  * @param cls closure with the 'struct GNUNET_ARM_MonitorHandle'
  * @param size number of bytes available in buf
  * @param buf where the callee should write the message
- * @return number of bytes written to buf 
+ * @return number of bytes written to buf
  */
 static size_t
 transmit_monitoring_init_message (void *cls, size_t size, void *buf)
@@ -251,7 +251,7 @@ GNUNET_ARM_monitor (const struct GNUNET_CONFIGURATION_Handle *cfg,
 {
   struct GNUNET_ARM_MonitorHandle *h;
 
-  h = GNUNET_malloc (sizeof (struct GNUNET_ARM_MonitorHandle));
+  h = GNUNET_new (struct GNUNET_ARM_MonitorHandle);
   h->cfg = GNUNET_CONFIGURATION_dup (cfg);
   h->currently_down = GNUNET_YES;
   h->reconnect_task = GNUNET_SCHEDULER_NO_TASK;