Fixed partially the memory release of parser