summaryrefslogtreecommitdiff
path: root/build/parseSpec.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-16 21:20:05 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-16 21:20:05 +0200
commit1f443958a9b0ce3b29db5faa77532a437c77e663 (patch)
tree6e00269d7dda6b3d5b04ce7ff53e07115e891701 /build/parseSpec.c
parent598d6efc865d3c1ca03d52cc1987966d581de288 (diff)
downloadrpm-1f443958a9b0ce3b29db5faa77532a437c77e663.tar.gz
rpm-1f443958a9b0ce3b29db5faa77532a437c77e663.tar.bz2
rpm-1f443958a9b0ce3b29db5faa77532a437c77e663.zip
More constfree for spec exposed stuff for now
- openfileinfo seems easily made opaque, revisit later
Diffstat (limited to 'build/parseSpec.c')
-rw-r--r--build/parseSpec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/parseSpec.c b/build/parseSpec.c
index e4dc5581f..930c55e46 100644
--- a/build/parseSpec.c
+++ b/build/parseSpec.c
@@ -240,7 +240,7 @@ retry:
/* remove this file from the stack */
spec->fileStack = ofi->next;
(void) Fclose(ofi->fd);
- ofi->fileName = _free(ofi->fileName);
+ ofi->fileName = _constfree(ofi->fileName);
ofi = _free(ofi);
/* only on last file do we signal EOF to caller */
@@ -382,7 +382,7 @@ void closeSpec(rpmSpec spec)
ofi = spec->fileStack;
spec->fileStack = spec->fileStack->next;
if (ofi->fd) (void) Fclose(ofi->fd);
- ofi->fileName = _free(ofi->fileName);
+ ofi->fileName = _constfree(ofi->fileName);
ofi = _free(ofi);
}
}