Reverted rewrite of malloc