Would you mind changing this emalloc + memset to an ecalloc please?