Skip to content

Commit 7f75eea

Browse files
authored
Merge pull request libgit2#4215 from pks-t/pks/diff-stack-free
diff_parse: free object instead of its pointer
2 parents 0d2f682 + 1cb30b1 commit 7f75eea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diff_parse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static git_diff_parsed *diff_parsed_alloc(void)
4545
diff->base.free_fn = diff_parsed_free;
4646

4747
if (git_diff_init_options(&diff->base.opts, GIT_DIFF_OPTIONS_VERSION) < 0) {
48-
git__free(&diff);
48+
git__free(diff);
4949
return NULL;
5050
}
5151

0 commit comments

Comments
 (0)