- fix pool_freeallrepos
authorMichael Schroeder <mls@suse.de>
Fri, 23 Dec 2011 13:33:54 +0000 (14:33 +0100)
committerMichael Schroeder <mls@suse.de>
Fri, 23 Dec 2011 13:33:54 +0000 (14:33 +0100)
src/pool.c

index ebc801632d26d075c04d04d1b931c0dc8d109c75..a3379147b9bfde215f48fb801522b0675cd62ef0 100644 (file)
@@ -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;