fetch-pack.c: use oidset to check existence of loose object
[gitweb.git] / builtin / pack-objects.c
index 5c674b2843ccadec710596f7b8c293bbbc6130ea..a197926eaa697b45d4583cd4bea71f4a3059960e 100644 (file)
@@ -1379,10 +1379,10 @@ static void cleanup_preferred_base(void)
        it = pbase_tree;
        pbase_tree = NULL;
        while (it) {
-               struct pbase_tree *this = it;
-               it = this->next;
-               free(this->pcache.tree_data);
-               free(this);
+               struct pbase_tree *tmp = it;
+               it = tmp->next;
+               free(tmp->pcache.tree_data);
+               free(tmp);
        }
 
        for (i = 0; i < ARRAY_SIZE(pbase_tree_cache); i++) {