summaryrefslogtreecommitdiff
path: root/src/iterator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/iterator.c')
-rw-r--r--src/iterator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/iterator.c b/src/iterator.c
index d8a17a716..196adddbf 100644
--- a/src/iterator.c
+++ b/src/iterator.c
@@ -1418,6 +1418,7 @@ static void workdir_iterator__free(git_iterator *self)
workdir_iterator *wi = (workdir_iterator *)self;
if (wi->index)
git_index_snapshot_release(&wi->index_snapshot, wi->index);
+ git_tree_free(wi->tree);
fs_iterator__free(self);
git_ignore__free(&wi->ignores);
}