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:
45efc08
)
solv.c: fixes leaked transaction structure
author
Ales Kozumplik
<akozumpl@redhat.com>
Wed, 7 Mar 2012 13:14:14 +0000
(14:14 +0100)
committer
Ales Kozumplik
<akozumpl@redhat.com>
Wed, 7 Mar 2012 13:37:18 +0000
(14:37 +0100)
examples/solv.c
patch
|
blob
|
history
diff --git
a/examples/solv.c
b/examples/solv.c
index
ed288b7
..
75eb30d
100644
(file)
--- a/
examples/solv.c
+++ b/
examples/solv.c
@@
-3098,6
+3098,7
@@
rerunsolver:
if (!trans->steps.count)
{
printf("Nothing to do.\n");
if (!trans->steps.count)
{
printf("Nothing to do.\n");
+ transaction_free(trans);
solver_free(solv);
queue_free(&job);
pool_free(pool);
solver_free(solv);
queue_free(&job);
pool_free(pool);
@@
-3133,6
+3134,7
@@
rerunsolver:
if (!yesno("OK to continue (y/n)? "))
{
printf("Abort.\n");
if (!yesno("OK to continue (y/n)? "))
{
printf("Abort.\n");
+ transaction_free(trans);
solver_free(solv);
queue_free(&job);
pool_free(pool);
solver_free(solv);
queue_free(&job);
pool_free(pool);
@@
-3406,6
+3408,7
@@
rerunsolver:
fclose(newpkgsfps[i]);
solv_free(newpkgsfps);
queue_free(&checkq);
fclose(newpkgsfps[i]);
solv_free(newpkgsfps);
queue_free(&checkq);
+ transaction_free(trans);
solver_free(solv);
queue_free(&job);
pool_free(pool);
solver_free(solv);
queue_free(&job);
pool_free(pool);