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:
8246557
)
Plug memleak from rpmSpecCheckDeps()
author
Panu Matilainen
<pmatilai@redhat.com>
Tue, 14 Sep 2010 06:44:06 +0000
(09:44 +0300)
committer
Panu Matilainen
<pmatilai@redhat.com>
Tue, 14 Sep 2010 06:45:58 +0000
(09:45 +0300)
- We need to call rpmtsEmpty(), not rpmtsClean() to purge the
transaction elements in the set...
build/spec.c
patch
|
blob
|
history
diff --git
a/build/spec.c
b/build/spec.c
index
1fc1554
..
a0749bf
100644
(file)
--- a/
build/spec.c
+++ b/
build/spec.c
@@
-319,13
+319,13
@@
rpmps rpmSpecCheckDeps(rpmts ts, rpmSpec spec)
{
rpmps probs = NULL;
- rpmts
Clean
(ts);
+ rpmts
Empty
(ts);
rpmtsAddInstallElement(ts, spec->sourceHeader, NULL, 0, NULL);
rpmtsCheck(ts);
probs = rpmtsProblems(ts);
- rpmts
Clean
(ts);
+ rpmts
Empty
(ts);
return probs;
}