Fix memleaks in xbps_show_pkg_deps() and xbps_show_pkg_reverse_deps().
--HG-- extra : convert_revision : xtraeme%40gmail.com-20090822052256-tnf5s1od4oluhygp
This commit is contained in:
parent
6d84cde6f1
commit
59b1942617
@ -91,6 +91,9 @@ xbps_show_pkg_deps(const char *pkgname)
|
|||||||
|
|
||||||
rv = xbps_callback_array_iter_in_dict(propsd, "run_depends",
|
rv = xbps_callback_array_iter_in_dict(propsd, "run_depends",
|
||||||
list_deps, NULL);
|
list_deps, NULL);
|
||||||
|
prop_object_release(propsd);
|
||||||
|
prop_object_release(pkgd);
|
||||||
|
|
||||||
xbps_release_regpkgdb_dict();
|
xbps_release_regpkgdb_dict();
|
||||||
|
|
||||||
return rv;
|
return rv;
|
||||||
@ -110,6 +113,8 @@ xbps_show_pkg_reverse_deps(const char *pkgname)
|
|||||||
|
|
||||||
rv = xbps_callback_array_iter_in_dict(pkgd, "requiredby",
|
rv = xbps_callback_array_iter_in_dict(pkgd, "requiredby",
|
||||||
list_strings_sep_in_array, NULL);
|
list_strings_sep_in_array, NULL);
|
||||||
|
prop_object_release(pkgd);
|
||||||
|
xbps_release_regpkgdb_dict();
|
||||||
|
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user