summaryrefslogtreecommitdiff
path: root/lib/psm.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-12-03 11:29:19 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-12-03 11:29:19 +0200
commitd54e0e899f02b3e492e7f8e73c10f9c3a8f53034 (patch)
treedf77133b4bef437449e523b96c57d75745e49b1f /lib/psm.c
parent0b80d38f32b438d81d47fc61074b1f163518d68f (diff)
downloadrpm-d54e0e899f02b3e492e7f8e73c10f9c3a8f53034.tar.gz
rpm-d54e0e899f02b3e492e7f8e73c10f9c3a8f53034.tar.bz2
rpm-d54e0e899f02b3e492e7f8e73c10f9c3a8f53034.zip
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
Diffstat (limited to 'lib/psm.c')
-rw-r--r--lib/psm.c10
1 files changed, 1 insertions, 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);