From b3769ec81795dda770c0e682e8981d5b59aebbc3 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 9 Nov 2010 11:45:31 +0200 Subject: [PATCH] Dont bother NULL'ing local variables on exit --- lib/rpmdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rpmdb.c b/lib/rpmdb.c index 8c42077..9a205af 100644 --- a/lib/rpmdb.c +++ b/lib/rpmdb.c @@ -3007,8 +3007,8 @@ exit: rpmlog(RPMLOG_ERR, _("failed to remove directory %s: %s\n"), newrootdbpath, strerror(errno)); } - newrootdbpath = _free(newrootdbpath); - rootdbpath = _free(rootdbpath); + free(newrootdbpath); + free(rootdbpath); return rc; } -- 2.7.4