From: Ales Kozumplik Date: Wed, 7 Mar 2012 13:14:14 +0000 (+0100) Subject: solv.c: fixes leaked transaction structure X-Git-Tag: BASE-SuSE-Code-12_2-Branch~113^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8d39899c99ea827c6239951aa38776d7ff1f926;p=platform%2Fupstream%2Flibsolv.git solv.c: fixes leaked transaction structure --- diff --git a/examples/solv.c b/examples/solv.c index ed288b7..75eb30d 100644 --- a/examples/solv.c +++ b/examples/solv.c @@ -3098,6 +3098,7 @@ rerunsolver: if (!trans->steps.count) { printf("Nothing to do.\n"); + transaction_free(trans); solver_free(solv); queue_free(&job); pool_free(pool); @@ -3133,6 +3134,7 @@ rerunsolver: if (!yesno("OK to continue (y/n)? ")) { printf("Abort.\n"); + transaction_free(trans); solver_free(solv); queue_free(&job); pool_free(pool); @@ -3406,6 +3408,7 @@ rerunsolver: fclose(newpkgsfps[i]); solv_free(newpkgsfps); queue_free(&checkq); + transaction_free(trans); solver_free(solv); queue_free(&job); pool_free(pool);