From f1c46157fbca4d29639e8602b4e0de02e33489d0 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Sat, 28 May 2011 19:42:54 +0300 Subject: [PATCH] Eliminate dead NULL-assignments on argvFree() and argiFree() --- rpmio/argv.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/rpmio/argv.c b/rpmio/argv.c index cf6e299..f061f03 100644 --- a/rpmio/argv.c +++ b/rpmio/argv.c @@ -35,20 +35,19 @@ ARGI_t argiFree(ARGI_t argi) { if (argi) { argi->nvals = 0; - argi->vals = _free(argi->vals); + free(argi->vals); + free(argi); } - argi = _free(argi); return NULL; } ARGV_t argvFree(ARGV_t argv) { - ARGV_t av; - - if (argv) - for (av = argv; *av; av++) - *av = _free(*av); - argv = _free(argv); + if (argv) { + for (ARGV_t av = argv; *av; av++) + free(*av); + free(argv); + } return NULL; } -- 2.7.4