Remove unneeded setting of errno after malloc failure