Fix calloc-free mismatch

Use free() for allocated memory by calloc (not delete).
Deleting calloc-ed memory will become problem in the environment which
overrides global "operator delete" like some game engine.