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:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user