]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/reflog.c
Merge branch 'bk/refs-multi-update'
[thirdparty/git.git] / builtin / reflog.c
index 28d756a418b27c9b9bf23805e54b74f6c3332ece..6eb24c8da27d265cad38628aeaa3e040dd298aab 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;