diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-02-26 00:47:36 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-26 00:47:36 +0100 |
commit | 362f869ff2dbc389234ecd8c4b996a9e507c39d7 (patch) | |
tree | 077586c50787e0a4469311aa15e7059f731825c5 /diff.c | |
parent | Merge branch 'ab/date-mode-release' (diff) | |
parent | diff.[ch]: have diff_free() free options->parseopts (diff) | |
download | git-362f869ff2dbc389234ecd8c4b996a9e507c39d7.tar.xz git-362f869ff2dbc389234ecd8c4b996a9e507c39d7.zip |
Merge branch 'ab/diff-free-more'
Leakfixes.
* ab/diff-free-more:
diff.[ch]: have diff_free() free options->parseopts
diff.[ch]: have diff_free() call clear_pathspec(opts.pathspec)
Diffstat (limited to 'diff.c')
-rw-r--r-- | diff.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -6452,6 +6452,8 @@ void diff_free(struct diff_options *options) diff_free_file(options); diff_free_ignore_regex(options); + clear_pathspec(&options->pathspec); + FREE_AND_NULL(options->parseopts); } void diff_flush(struct diff_options *options) |