summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2013-02-04 16:11:16 +0100
committerMichael Schroeder <mls@suse.de>2013-02-04 16:11:16 +0100
commite06b8055a9168b7a7a24bff0ee8265a4df8124c2 (patch)
treedb080ebb7265793e462d98a7d4bd16a44154a01e /src
parent41c5eb1cdfff8c8ed92194eafbb3070c86350c4e (diff)
downloadlibsolv-e06b8055a9168b7a7a24bff0ee8265a4df8124c2.tar.gz
libsolv-e06b8055a9168b7a7a24bff0ee8265a4df8124c2.tar.bz2
libsolv-e06b8055a9168b7a7a24bff0ee8265a4df8124c2.zip
don't free obsoletes/obsoetes_data in solver cleanup
Diffstat (limited to 'src')
-rw-r--r--src/policy.c2
-rw-r--r--src/solver.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/policy.c b/src/policy.c
index abd07e5..6243e09 100644
--- a/src/policy.c
+++ b/src/policy.c
@@ -768,6 +768,8 @@ policy_create_obsolete_index(Solver *solv)
Id p, pp, obs, *obsp, *obsoletes, *obsoletes_data;
int i, n, cnt;
+ solv->obsoletes = solv_free(solv->obsoletes);
+ solv->obsoletes_data = solv_free(solv->obsoletes_data);
if (!installed || installed->start == installed->end)
return;
cnt = installed->end - installed->start;
diff --git a/src/solver.c b/src/solver.c
index 883c46a..e0ca140 100644
--- a/src/solver.c
+++ b/src/solver.c
@@ -3036,8 +3036,6 @@ solver_solve(Solver *solv, Queue *job)
map_empty(&solv->suggestsmap);
solv->recommends_index = 0;
}
- solv->obsoletes = solv_free(solv->obsoletes);
- solv->obsoletes_data = solv_free(solv->obsoletes_data);
solv->multiversionupdaters = solv_free(solv->multiversionupdaters);