--- freeswitch-contrib-master/mod/applications/mod_ha_cluster/mod_ha_cluster.c 2013-01-21 18:17:50.000000000 -0500 +++ freeswitch-contrib-master/mod/applications/mod_ha_cluster/mod_ha_cluster.c.dlucio 2013-08-17 12:15:01.856921368 -0400 @@ -278,9 +278,9 @@ static void receive_events() if(hevent) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "HAC: Discarding duplicate event.\n"); } else { - hevent = malloc(sizeof(hevent)); + hevent = malloc(sizeof(*hevent)); switch_assert(hevent); - memset(hevent, 0, sizeof(hevent)); + memset(hevent, 0, sizeof(*hevent)); hevent->event = event; hevent->processed = SWITCH_FALSE; hevent->uuid = uuid;