Commit 7f75eeaf99271c0e5d853d1ded6352fc4da66ebe

Edward Thomson 2017-04-25T07:10:33

Merge pull request #4215 from pks-t/pks/diff-stack-free diff_parse: free object instead of its pointer

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/diff_parse.c b/src/diff_parse.c
index 24a8a4a..5e3a7a1 100644
--- a/src/diff_parse.c
+++ b/src/diff_parse.c
@@ -45,7 +45,7 @@ static git_diff_parsed *diff_parsed_alloc(void)
 	diff->base.free_fn = diff_parsed_free;
 
 	if (git_diff_init_options(&diff->base.opts, GIT_DIFF_OPTIONS_VERSION) < 0) {
-		git__free(&diff);
+		git__free(diff);
 		return NULL;
 	}