- The only thing that should ever call this is freePackages() which
was already made static. As newPackage() links the package structure
with the spec, its not safe for others to call it.
Package newPackage(rpmSpec spec);
/** \ingroup rpmbuild
- * Destroy package control structure.
- * @param pkg package control structure
- * @return NULL
- */
-Package freePackage(Package pkg);
-
-/** \ingroup rpmbuild
* Add dependency to header, filtering duplicates.
* @param spec spec file control structure
* @param h header
return p;
}
-Package freePackage(Package pkg)
+static Package freePackage(Package pkg)
{
if (pkg == NULL) return NULL;