diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-12-03 11:29:19 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-12-03 11:29:19 +0200 |
commit | d54e0e899f02b3e492e7f8e73c10f9c3a8f53034 (patch) | |
tree | df77133b4bef437449e523b96c57d75745e49b1f /lib | |
parent | 0b80d38f32b438d81d47fc61074b1f163518d68f (diff) | |
download | rpm-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')
-rw-r--r-- | lib/psm.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -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); |