Merge branch 'nd/fetch-into-shallow'
[gitweb.git] / builtin / reflog.c
index 54184b3d133bb66db272fd21ad3cad53a4a9a5cb..ba27f7cc614214eb32f60b684b3617c39a0066ef 100644 (file)
@@ -94,8 +94,7 @@ static int tree_is_complete(const unsigned char *sha1)
                        complete = 0;
                }
        }
-       free(tree->buffer);
-       tree->buffer = NULL;
+       free_tree_buffer(tree);
 
        if (complete)
                tree->object.flags |= SEEN;