From: June McEnroe Date: Tue, 17 May 2022 21:50:53 +0000 (+0000) Subject: shared: fix bad free in cgit_diff_tree X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/b9ff119549f6018adc54c8447ad87943c6bcb55e?hp=b9ff119549f6018adc54c8447ad87943c6bcb55e shared: fix bad free in cgit_diff_tree Since git commit 244c27242f44e6b88e3a381c90bde08d134c274b, > diff.[ch]: have diff_free() call clear_pathspec(opts.pathspec) calling diff_flush calls free(3) on opts.pathspec.items, so it can't be a pointer to a stack variable. Signed-off-by: Christian Hesse ---