lib/repo_pkgdeps.c: resource leak (CID 62700)

This commit is contained in:
Juan RP 2014-10-05 07:38:20 +02:00
parent 0608e0057f
commit b28e85bfaa

View File

@ -83,7 +83,6 @@ static int
add_missing_reqdep(struct xbps_handle *xhp, const char *reqpkg)
{
xbps_array_t mdeps;
xbps_string_t reqpkg_str;
xbps_object_iterator_t iter = NULL;
xbps_object_t obj;
unsigned int idx = 0;
@ -95,10 +94,6 @@ add_missing_reqdep(struct xbps_handle *xhp, const char *reqpkg)
add_pkgdep = update_pkgdep = pkgfound = false;
mdeps = xbps_dictionary_get(xhp->transd, "missing_deps");
reqpkg_str = xbps_string_create_cstring_nocopy(reqpkg);
if (reqpkg_str == NULL)
return errno;
iter = xbps_array_iterator(mdeps);
if (iter == NULL)
goto out;