summaryrefslogtreecommitdiff
path: root/rpmqv.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-05-30 09:36:03 +0300
committerPanu Matilainen <pmatilai@redhat.com>2011-05-30 09:36:03 +0300
commit5b2c322887ee2309ce7bd7fe2c055e0968225eee (patch)
tree0e8de0345fbd2c349ec610876eafaa7363475550 /rpmqv.c
parent6bd2b43e9c90637380169992f48e278824139987 (diff)
downloadlibrpm-tizen-5b2c322887ee2309ce7bd7fe2c055e0968225eee.tar.gz
librpm-tizen-5b2c322887ee2309ce7bd7fe2c055e0968225eee.tar.bz2
librpm-tizen-5b2c322887ee2309ce7bd7fe2c055e0968225eee.zip
Eliminate dead NULL-assignments at scope-end in main cli utils
Diffstat (limited to 'rpmqv.c')
-rw-r--r--rpmqv.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/rpmqv.c b/rpmqv.c
index e71874d30..7c7a77280 100644
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -332,18 +332,19 @@ int main(int argc, char *argv[])
break;
}
- ts = rpmtsFree(ts);
+ rpmtsFree(ts);
finishPipe();
#ifdef IAM_RPMQV
- qva->qva_queryFormat = _free(qva->qva_queryFormat);
+ free(qva->qva_queryFormat);
#endif
#ifdef IAM_RPMEIU
- if (ia->relocations != NULL)
- for (i = 0; i < ia->numRelocations; i++)
- ia->relocations[i].oldPath = _free(ia->relocations[i].oldPath);
- ia->relocations = _free(ia->relocations);
+ if (ia->relocations != NULL) {
+ for (i = 0; i < ia->numRelocations; i++)
+ free(ia->relocations[i].oldPath);
+ free(ia->relocations);
+ }
#endif
rpmcliFini(optCon);