From d54e0e899f02b3e492e7f8e73c10f9c3a8f53034 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 3 Dec 2008 11:29:19 +0200 Subject: Remove unnecessary fiddling with rpmte internals - rpmtsClean() will free the transaction element we added and rpmteFree() will in turn close the file descriptor, free headers etc --- lib/psm.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/psm.c b/lib/psm.c index c34304a1c..fe33006a0 100644 --- a/lib/psm.c +++ b/lib/psm.c @@ -339,15 +339,7 @@ exit: specFile = _free(specFile); if (h != NULL) h = headerFree(h); - - if (fi != NULL) { - rpmteSetHeader(te, NULL); - if (te->fd != NULL) - (void) Fclose(te->fd); - te->fd = NULL; - te = NULL; - fi = rpmfiFree(fi); - } + if (fi != NULL) fi = rpmfiFree(fi); /* XXX nuke the added package(s). */ rpmtsClean(ts); -- cgit v1.2.3