Fixed: Plug FILE* resource leak

Fixed: Plug FILE* resource leak