diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2017-04-25 07:10:33 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-04-25 07:10:33 -0700 |
| commit | 7f75eeaf99271c0e5d853d1ded6352fc4da66ebe (patch) | |
| tree | 990d3ec9baf83bc529ac4de3fcbb0da329f6165f | |
| parent | 0d2f6824ebf0bf9cb6c2bfb0ac9072d9dbb474c0 (diff) | |
| parent | 1cb30b1bb45645a2f01ddc855a8644079215f931 (diff) | |
| download | libgit2-7f75eeaf99271c0e5d853d1ded6352fc4da66ebe.tar.gz | |
Merge pull request #4215 from pks-t/pks/diff-stack-free
diff_parse: free object instead of its pointer
| -rw-r--r-- | src/diff_parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff_parse.c b/src/diff_parse.c index 24a8a4af6..5e3a7a177 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; } |
