Fix success path memory leaks (#49)
Fix success path memory leaks (#49)

Errors still expected on the failure path, but this is a harder
one to fix with the current code, so not part of this commit
ARM-software/astc-encoder,ARM-software/astc-encoder,ARM-software/astc-encoder,ARM-software/astc-encoder