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:
@@ -105,6 +105,7 @@ xbps_check_pkg_integrity(const char *pkgname)
|
||||
printf("Package %s is not installed.\n", pkgname);
|
||||
return 0;
|
||||
}
|
||||
prop_object_release(pkgd);
|
||||
|
||||
/*
|
||||
* Check for props.plist metadata file.
|
||||
@@ -296,8 +297,6 @@ out:
|
||||
prop_object_release(filesd);
|
||||
if (propsd)
|
||||
prop_object_release(propsd);
|
||||
if (pkgd)
|
||||
prop_object_release(pkgd);
|
||||
if (broken)
|
||||
rv = EINVAL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user