Remove unnecessary fiddling with ts element header
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 25 Feb 2010 19:18:47 +0000 (21:18 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 25 Feb 2010 19:18:47 +0000 (21:18 +0200)
- rpmteClose() takes care of freeing the header already

lib/psm.c

index f207c72..85c64e8 100644 (file)
--- a/lib/psm.c
+++ b/lib/psm.c
@@ -1018,10 +1018,6 @@ static rpmRC rpmpsmStage(rpmpsm psm, pkgStage stage)
            xx = rpmpsmNext(psm, PSM_NOTIFY);
        }
 
-       if (psm->goal == PKG_ERASE) {
-           if (psm->te != NULL) 
-               rpmteSetHeader(psm->te, NULL);
-       }
        psm->failedFile = _free(psm->failedFile);
 
        fi->apath = _free(fi->apath);