From 132017fb8dc2f120885f16c84639527466e211ee Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Mon, 17 Dec 2007 19:15:14 +0200 Subject: [PATCH] Use constfree for rpmte internals for now - the internals are exposed all over the tree... --- lib/rpmte.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/rpmte.c b/lib/rpmte.c index f792cdc..940fe00 100644 --- a/lib/rpmte.c +++ b/lib/rpmte.c @@ -35,8 +35,8 @@ static void delTE(rpmte p) if (p->relocs) { for (r = p->relocs; (r->oldPath || r->newPath); r++) { - r->oldPath = _free(r->oldPath); - r->newPath = _free(r->newPath); + r->oldPath = _constfree(r->oldPath); + r->newPath = _constfree(r->newPath); } p->relocs = _free(p->relocs); } @@ -48,12 +48,12 @@ static void delTE(rpmte p) if (p->fd != NULL) p->fd = fdFree(p->fd, RPMDBG_M("delTE")); - p->os = _free(p->os); - p->arch = _free(p->arch); + p->os = _constfree(p->os); + p->arch = _constfree(p->arch); p->epoch = _free(p->epoch); - p->name = _free(p->name); - p->NEVR = _free(p->NEVR); - p->NEVRA = _free(p->NEVRA); + p->name = _constfree(p->name); + p->NEVR = _constfree(p->NEVR); + p->NEVRA = _constfree(p->NEVRA); p->h = headerFree(p->h); -- 2.7.4