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:
dd0db6e
)
- fix pool_freeallrepos
author
Michael Schroeder
<mls@suse.de>
Fri, 23 Dec 2011 13:33:54 +0000
(14:33 +0100)
committer
Michael Schroeder
<mls@suse.de>
Fri, 23 Dec 2011 13:33:54 +0000
(14:33 +0100)
src/pool.c
patch
|
blob
|
history
diff --git
a/src/pool.c
b/src/pool.c
index ebc801632d26d075c04d04d1b931c0dc8d109c75..a3379147b9bfde215f48fb801522b0675cd62ef0 100644
(file)
--- a/
src/pool.c
+++ b/
src/pool.c
@@
-111,7
+111,8
@@
pool_freeallrepos(Pool *pool, int reuseids)
pool_freewhatprovides(pool);
for (i = 1; i < pool->nrepos; i++)
- repo_freedata(pool->repos[i]);
+ if (pool->repos[i])
+ repo_freedata(pool->repos[i]);
pool->repos = solv_free(pool->repos);
pool->nrepos = 0;
pool->urepos = 0;