]> gitweb.ps.run Git - ps-cgit/commitdiff
shared: fix bad free in cgit_diff_tree
authorJune McEnroe <june@causal.agency>
Tue, 17 May 2022 21:50:53 +0000 (21:50 +0000)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 19 Dec 2022 14:09:34 +0000 (15:09 +0100)
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 <mail@eworm.de>

No differences found