changed my email.
replace pkg_repos_count() by pkg_repos_total_count() and pkg_repos_activated_count().
pkg/clean.c: ensure calling pkgdb_it_free() when needed.

  Also added comments about unused values that should be checked.
Fix Dead assignments found with scan-build.