mirror of
https://git.proxmox.com/git/libgit2
synced 2025-07-17 22:48:42 +00:00
Merge pull request #4215 from pks-t/pks/diff-stack-free
diff_parse: free object instead of its pointer
This commit is contained in:
commit
7f75eeaf99
@ -45,7 +45,7 @@ static git_diff_parsed *diff_parsed_alloc(void)
|
|||||||
diff->base.free_fn = diff_parsed_free;
|
diff->base.free_fn = diff_parsed_free;
|
||||||
|
|
||||||
if (git_diff_init_options(&diff->base.opts, GIT_DIFF_OPTIONS_VERSION) < 0) {
|
if (git_diff_init_options(&diff->base.opts, GIT_DIFF_OPTIONS_VERSION) < 0) {
|
||||||
git__free(&diff);
|
git__free(diff);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user