projects
/
platform
/
upstream
/
libsolv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea033e2
)
fix mem leak in last commit
author
Michael Schroeder
<mls@suse.de>
Tue, 3 Sep 2013 13:12:43 +0000
(15:12 +0200)
committer
Michael Schroeder
<mls@suse.de>
Tue, 3 Sep 2013 13:12:43 +0000
(15:12 +0200)
src/transaction.c
patch
|
blob
|
history
diff --git
a/src/transaction.c
b/src/transaction.c
index
a021f19
..
cc22292
100644
(file)
--- a/
src/transaction.c
+++ b/
src/transaction.c
@@
-223,12
+223,12
@@
obsoleted_by_pseudos_only(Transaction *trans, Id p)
return 0;
queue_init(&q);
transaction_all_obs_pkgs(trans, p, &q);
- if (!q.count)
- return 0;
for (i = 0; i < q.count; i++)
if (!is_pseudo_package(pool, pool->solvables + q.elements[i]))
- return 0;
- return 1;
+ break;
+ i = !q.count || i < q.count ? 0 : 1;
+ queue_free(&q);
+ return i;
}
/*