projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31724be
)
Oops, don't access variable after freeing
author
Panu Matilainen
<pmatilai@redhat.com>
Wed, 7 May 2008 09:15:22 +0000
(12:15 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Wed, 7 May 2008 09:15:22 +0000
(12:15 +0300)
lib/rpminstall.c
patch
|
blob
|
history
diff --git
a/lib/rpminstall.c
b/lib/rpminstall.c
index
9b4d95f
..
86ea1b7
100644
(file)
--- 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)