diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2011-05-30 09:36:03 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2011-05-30 09:36:03 +0300 |
commit | 5b2c322887ee2309ce7bd7fe2c055e0968225eee (patch) | |
tree | 0e8de0345fbd2c349ec610876eafaa7363475550 /rpmqv.c | |
parent | 6bd2b43e9c90637380169992f48e278824139987 (diff) | |
download | rpm-5b2c322887ee2309ce7bd7fe2c055e0968225eee.tar.gz rpm-5b2c322887ee2309ce7bd7fe2c055e0968225eee.tar.bz2 rpm-5b2c322887ee2309ce7bd7fe2c055e0968225eee.zip |
Eliminate dead NULL-assignments at scope-end in main cli utils
Diffstat (limited to 'rpmqv.c')
-rw-r--r-- | rpmqv.c | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -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); |