fix a memleaking issue in cs_disasm_ex() where memory was not freed when input code is illegit