projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62d27e0
)
Fix memory leak from unused problem set
author
Panu Matilainen
<pmatilai@redhat.com>
Tue, 24 Feb 2009 08:10:38 +0000
(10:10 +0200)
committer
Panu Matilainen
<pmatilai@redhat.com>
Tue, 24 Feb 2009 08:10:38 +0000
(10:10 +0200)
- checkInstalledFiles() doesn't need ps for anything, this just caused
a memleak due to refcount
lib/transaction.c
patch
|
blob
|
history
diff --git
a/lib/transaction.c
b/lib/transaction.c
index
33195a4
..
45a9afd
100644
(file)
--- a/
lib/transaction.c
+++ b/
lib/transaction.c
@@
-670,7
+670,6
@@
rpmdbMatchIterator rpmFindBaseNamesInDB(rpmts ts)
static
void checkInstalledFiles(rpmts ts, fingerPrintCache fpc)
{
- rpmps ps;
rpmte p;
rpmfi fi;
rpmfs fs;
@@
-698,8
+697,6
@@
void checkInstalledFiles(rpmts ts, fingerPrintCache fpc)
return;
}
- ps = rpmtsProblems(ts);
-
/* Loop over all packages from the rpmdb */
h = newheader = rpmdbNextIterator(mi);
while (h != NULL) {