Fix allocation on stat so that it uses malloc() since a user will need to use free...