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

@@ -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;