diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-05-07 12:15:22 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-05-07 12:15:22 +0300 |
commit | 79dd50f94d94158e03fd57a72a896f8fc20f61ec (patch) | |
tree | 0094f97420a9cf236f61e326ea91f3d27cd7ce65 /lib | |
parent | 31724be2f63b286d8684d72d62a7a19d1233143b (diff) | |
download | rpm-79dd50f94d94158e03fd57a72a896f8fc20f61ec.tar.gz rpm-79dd50f94d94158e03fd57a72a896f8fc20f61ec.tar.bz2 rpm-79dd50f94d94158e03fd57a72a896f8fc20f61ec.zip |
Oops, don't access variable after freeing
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rpminstall.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rpminstall.c b/lib/rpminstall.c index 9b4d95fa9..86ea1b789 100644 --- a/lib/rpminstall.c +++ b/lib/rpminstall.c @@ -605,11 +605,12 @@ exit: eiu->pkgState = _free(eiu->pkgState); eiu->pkgURL = _free(eiu->pkgURL); eiu->argv = _free(eiu->argv); + rc = eiu->numFailed; free(eiu); rpmtsEmpty(ts); - return eiu->numFailed; + return rc; } int rpmErase(rpmts ts, struct rpmInstallArguments_s * ia, ARGV_const_t argv) |