lib/repo_pkgdeps.c: fix a double free in error branch (CID 62754)