summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tree.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tree.c b/src/tree.c
index 48b9f121d..5342cbca2 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -466,7 +466,11 @@ int git_tree__parse(void *_tree, git_odb_object *odb_obj)
filename_len = nul - buffer;
/** Allocate the entry and store it in the entries vector */
{
+#ifdef GIT_WIN32
+ entry = alloc_entry(buffer);
+#else
entry = alloc_entry_pooled(&tree->pool, buffer, filename_len);
+#endif
GITERR_CHECK_ALLOC(entry);
if (git_vector_insert(&tree->entries, entry) < 0)