From: Michael Schroeder Date: Tue, 29 Oct 2013 15:05:24 +0000 (+0100) Subject: plug weakrulemap memory map if the solver gets re-run X-Git-Tag: 0.6.4~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d49d3195edc87e864aa94af16583cf4e48c3a11f;p=thirdparty%2Flibsolv.git plug weakrulemap memory map if the solver gets re-run --- diff --git a/src/solver.c b/src/solver.c index 3d23b5ba..0396f4a7 100644 --- a/src/solver.c +++ b/src/solver.c @@ -3095,6 +3095,11 @@ solver_solve(Solver *solv, Queue *job) map_free(&solv->cleandepsmap); map_init(&solv->cleandepsmap, 0); } + if (solv->weakrulemap.size) + { + map_free(&solv->weakrulemap); + map_init(&solv->weakrulemap, 0); + } queue_empty(&solv->weakruleq); solv->watches = solv_free(solv->watches);