Fixed malloc delete unmatch bug.