Commit 7f75eeaf by Edward Thomson Committed by GitHub

Merge pull request #4215 from pks-t/pks/diff-stack-free

diff_parse: free object instead of its pointer
parents 0d2f6824 1cb30b1b
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment