summaryrefslogtreecommitdiff
path: root/src/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tree.c')
-rw-r--r--src/tree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tree.c b/src/tree.c
index ec44d2492..702095d14 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -680,7 +680,7 @@ static int tree_frompath(
slash_pos - treeentry_path + 1
);
- git_tree_close(subtree);
+ git_tree_free(subtree);
return error;
}
@@ -731,7 +731,7 @@ static int tree_walk_post(
payload
);
- git_tree_close(subtree);
+ git_tree_free(subtree);
}
}