Always release the object dictionary returned by xbps_find_pkg_dict_installed().

Document this in the public API header and update all code accordingly.
This commit is contained in:
Juan RP
2010-11-08 02:02:35 +01:00
parent ab10cc3b15
commit 679833156a
4 changed files with 9 additions and 3 deletions

View File

@@ -114,6 +114,7 @@ xbps_get_pkg_state_installed(const char *pkgname, pkg_state_t *state)
return errno;
*state = get_state(pkgd);
prop_object_release(pkgd);
if (*state == 0)
return EINVAL;