From: Panu Matilainen Date: Sun, 16 Dec 2007 19:20:05 +0000 (+0200) Subject: More constfree for spec exposed stuff for now X-Git-Tag: rpm-4.6.0-rc1~1251 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f443958a9b0ce3b29db5faa77532a437c77e663;p=platform%2Fupstream%2Frpm.git More constfree for spec exposed stuff for now - openfileinfo seems easily made opaque, revisit later --- diff --git a/build/parseSpec.c b/build/parseSpec.c index e4dc558..930c55e 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); } }