Fix bugs - Parse large binary file causing crash

 * It didn't free the capstone object 'insn' inappropriately,
 * so it would cause out of memory.
 * Let it free and also check other malloc memory.