change name extension to .mz
fix: free() an invalid pointer