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

diff_parse: free object instead of its pointer
This commit is contained in:
Edward Thomson 2017-04-25 07:10:33 -07:00 committed by GitHub
commit 7f75eeaf99

View File

@ -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;
}