Fix memory leak
Fix memory leak

As reported by Coverity Scan

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