summaryrefslogtreecommitdiff
path: root/build/spec.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-11-11 20:45:20 +0000
committerjbj <devnull@localhost>2001-11-11 20:45:20 +0000
commit1eb0503123bfd829d5122e54353a000d89333a10 (patch)
tree5ecfd5f2ee435bf2e2ccffcfade0c5f6bfb40515 /build/spec.c
parentac9f0fea036a08c071d28d2056fc9646ec7e679c (diff)
downloadlibrpm-tizen-1eb0503123bfd829d5122e54353a000d89333a10.tar.gz
librpm-tizen-1eb0503123bfd829d5122e54353a000d89333a10.tar.bz2
librpm-tizen-1eb0503123bfd829d5122e54353a000d89333a10.zip
Replace loadFi with fiNew, freeFi with fiFree.
CVS patchset: 5175 CVS date: 2001/11/11 20:45:20
Diffstat (limited to 'build/spec.c')
-rw-r--r--build/spec.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/build/spec.c b/build/spec.c
index a54efaebb..c57efb950 100644
--- a/build/spec.c
+++ b/build/spec.c
@@ -162,10 +162,12 @@ Package freePackage(Package pkg)
if (pkg->cpioList) {
TFI_t fi = pkg->cpioList;
pkg->cpioList = NULL;
- freeFi(fi);
+ fi = fiFree(fi, 1);
+#ifdef DYING
/*@-refcounttrans@*/ /* FIX: fi needs to be only */
fi = _free(fi);
/*@=refcounttrans@*/
+#endif
}
pkg->specialDoc = freeStringBuf(pkg->specialDoc);
@@ -510,10 +512,12 @@ Spec freeSpec(Spec spec)
if (spec->sourceCpioList) {
TFI_t fi = spec->sourceCpioList;
spec->sourceCpioList = NULL;
- freeFi(fi);
+ fi = fiFree(fi, 1);
+#ifdef DYING
/*@-refcounttrans@*/ /* FIX: fi needs to be only */
fi = _free(fi);
/*@=refcounttrans@*/
+#endif
}
spec->buildRestrictions = headerFree(spec->buildRestrictions, "spec->>buildRestrictions");