Commit b0b32b432111adf33fa3c3cb3beee7a81087704b

Arthur Schreiber 2014-01-13T22:51:10

Fix a double free issue in `git_blame__alloc`. `git_blame_free` already calls `git__free` on `gbr`.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/blame.c b/src/blame.c
index 45f55ed..b885de2 100644
--- a/src/blame.c
+++ b/src/blame.c
@@ -121,7 +121,6 @@ git_blame* git_blame__alloc(
 		git_vector_insert(&gbr->paths, git__strdup(path)) < 0)
 	{
 		git_blame_free(gbr);
-		git__free(gbr);
 		return NULL;
 	}