fix load_pkg_for_entry (clang-analyzer)
free pkg files