fix zeroing in xmalloc
Merge pull request #150 from ronnychevalier/rc/fix_xmalloc

Fix zeroing in xmalloc