From 1f443958a9b0ce3b29db5faa77532a437c77e663 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Sun, 16 Dec 2007 21:20:05 +0200 Subject: More constfree for spec exposed stuff for now - openfileinfo seems easily made opaque, revisit later --- build/parseSpec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build/parseSpec.c') 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); } } -- cgit v1.2.3