diff options
author | Michael Schroeder <mls@suse.de> | 2013-09-03 15:12:43 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2013-09-03 15:12:43 +0200 |
commit | 7c5652402f1e4b3ea19924552b6dede62b073fd6 (patch) | |
tree | 3824f34bd45291d9e0989963cc5a9ce341029846 /src/transaction.c | |
parent | ea033e29a45af292837dadc7deea3049aba9ea04 (diff) | |
download | libsolv-7c5652402f1e4b3ea19924552b6dede62b073fd6.tar.gz libsolv-7c5652402f1e4b3ea19924552b6dede62b073fd6.tar.bz2 libsolv-7c5652402f1e4b3ea19924552b6dede62b073fd6.zip |
fix mem leak in last commit
Diffstat (limited to 'src/transaction.c')
-rw-r--r-- | src/transaction.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/transaction.c b/src/transaction.c index a021f19..cc22292 100644 --- 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; } /* |