From d2a093a4014955b36bb6dd8a5d4a56cd9aa62e9b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 14 Jan 2010 18:58:14 +0100 Subject: [PATCH] xbps_repository_install_pkg: don't forget to release repository pool stuff. --HG-- extra : convert_revision : xtraeme%40gmail.com-20100114175814-0bin80brsh13swbj --- lib/repository_findpkg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/repository_findpkg.c b/lib/repository_findpkg.c index 786ef000..acf0fa00 100644 --- a/lib/repository_findpkg.c +++ b/lib/repository_findpkg.c @@ -349,11 +349,11 @@ xbps_repository_install_pkg(const char *pkg, bool by_pkgmatch) if (by_pkgmatch) { if (xbps_find_pkg_in_dict_by_pkgmatch(trans_dict, "unsorted_deps", pkg)) - return 0; + goto out; } else { if (xbps_find_pkg_in_dict_by_name(trans_dict, "unsorted_deps", pkg)) - return 0; + goto out; } /* * Set repository in pkg dictionary.