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)
This commit is contained in:
Junio C Hamano
2022-02-25 15:47:36 -08:00
5 changed files with 5 additions and 9 deletions

2
diff.c
View File

@ -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)