Minor cleanups to cpio_doio()
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 18 May 2011 09:04:12 +0000 (12:04 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 18 May 2011 09:04:12 +0000 (12:04 +0300)
- Remove redundant rpmtsEmpty(), this is done from rpmtsFree() anyway
- Dont bother NULL'ing local variables at exit

build/pack.c

index 4aedebf..c3534e3 100644 (file)
@@ -79,10 +79,8 @@ static rpmRC cpio_doio(FD_t fdo, Header h, CSA_t csa, const char * fmodeMacro)
        rc = RPMRC_FAIL;
     }
 
-    rpmtsEmpty(ts);
-
-    failedFile = _free(failedFile);
-    ts = rpmtsFree(ts);
+    free(failedFile);
+    rpmtsFree(ts);
 
     return rc;
 }