xbps_sort_pkg_deps: fix a leak if all deps are satisfied.
--HG-- extra : convert_revision : 04f0a2ced6d83f57d7ea08650c1ed48ea860f6b0
This commit is contained in:
parent
c9d4ea5527
commit
03c899b33c
|
@ -132,8 +132,11 @@ xbps_sort_pkg_deps(prop_dictionary_t chaindeps)
|
|||
*/
|
||||
installed = prop_dictionary_get(chaindeps, "installed_deps");
|
||||
unsorted = prop_dictionary_get(chaindeps, "unsorted_deps");
|
||||
if (prop_array_count(unsorted) == 0 && prop_array_count(installed) > 0)
|
||||
if (prop_array_count(unsorted) == 0 &&
|
||||
prop_array_count(installed) > 0) {
|
||||
prop_object_release(sorted);
|
||||
return 0;
|
||||
}
|
||||
|
||||
prop_dictionary_get_uint32(chaindeps, "indirectdeps_count",
|
||||
&indirdepscnt);
|
||||
|
|
Loading…
Reference in New Issue