[CORE] Correct some leak issue