Commit 327dc61f132a4999e006d8d8bd2080c1f5a34bf0

Ben Straub 2012-06-07T12:28:08

Prefer git__free (again).

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/revparse.c b/src/revparse.c
index 6bcdeb3..62c193b 100644
--- a/src/revparse.c
+++ b/src/revparse.c
@@ -546,7 +546,7 @@ static int oid_for_tree_path(git_oid *out, git_tree *tree, git_repository *repo,
       if (tree2 != tree) git_tree_free(tree2);
       if (git_tree_entry__is_tree(entry)) {
          if (git_tree_lookup(&tree2, repo, &entry->oid) < 0) {
-            free(alloc);
+            git__free(alloc);
             return GIT_ERROR;
          }
       }