xbps_install_pkg_deps: fix a leak if installing a required dep fails.
--HG-- extra : convert_revision : e29096f8929dfcf41f6a0c75f758f9d8f4b67596
This commit is contained in:
parent
bd29a1f180
commit
774d14ac93
@ -445,7 +445,7 @@ xbps_install_pkg_deps(prop_dictionary_t pkg, const char *destdir)
|
|||||||
while ((obj = prop_object_iterator_next(iter)) != NULL) {
|
while ((obj = prop_object_iterator_next(iter)) != NULL) {
|
||||||
rv = xbps_install_binary_pkg_fini(NULL, obj, destdir);
|
rv = xbps_install_binary_pkg_fini(NULL, obj, destdir);
|
||||||
if (rv != 0)
|
if (rv != 0)
|
||||||
goto out;
|
break;
|
||||||
}
|
}
|
||||||
prop_object_iterator_release(iter);
|
prop_object_iterator_release(iter);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user