lib/repo.c: fix build after aa8d88272ef6.
lib/repo_pkgdeps.c: resource leak (CID 62700)