From 4cc33f06700f7048107256a05228e4f9d094bc64 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 18 May 2011 12:04:12 +0300 Subject: [PATCH] Minor cleanups to cpio_doio() - Remove redundant rpmtsEmpty(), this is done from rpmtsFree() anyway - Dont bother NULL'ing local variables at exit --- build/pack.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/build/pack.c b/build/pack.c index 4aedebf..c3534e3 100644 --- a/build/pack.c +++ b/build/pack.c @@ -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; } -- 2.7.4