lib/repo_pkgdeps.c: resource leak (CID 62700)
This commit is contained in:
parent
0608e0057f
commit
b28e85bfaa
@ -83,7 +83,6 @@ static int
|
|||||||
add_missing_reqdep(struct xbps_handle *xhp, const char *reqpkg)
|
add_missing_reqdep(struct xbps_handle *xhp, const char *reqpkg)
|
||||||
{
|
{
|
||||||
xbps_array_t mdeps;
|
xbps_array_t mdeps;
|
||||||
xbps_string_t reqpkg_str;
|
|
||||||
xbps_object_iterator_t iter = NULL;
|
xbps_object_iterator_t iter = NULL;
|
||||||
xbps_object_t obj;
|
xbps_object_t obj;
|
||||||
unsigned int idx = 0;
|
unsigned int idx = 0;
|
||||||
@ -95,10 +94,6 @@ add_missing_reqdep(struct xbps_handle *xhp, const char *reqpkg)
|
|||||||
add_pkgdep = update_pkgdep = pkgfound = false;
|
add_pkgdep = update_pkgdep = pkgfound = false;
|
||||||
mdeps = xbps_dictionary_get(xhp->transd, "missing_deps");
|
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);
|
iter = xbps_array_iterator(mdeps);
|
||||||
if (iter == NULL)
|
if (iter == NULL)
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
Reference in New Issue
Block a user