Fix memory leak
Fix memory leak

As reported by https://github.com/tbeu/matio/issues/186

MaartenBent/matio,tbeu/matio,MaartenBent/matio,tbeu/matio,MaartenBent/matio,tbeu/matio,MaartenBent/matio,tbeu/matio