]> git.99rst.org Git - git.git/commit
diff: fix leak when parsing invalid ignore regex option
authorPatrick Steinhardt <redacted>
Wed, 14 Aug 2024 06:52:42 +0000 (08:52 +0200)
committerJunio C Hamano <redacted>
Wed, 14 Aug 2024 17:08:00 +0000 (10:08 -0700)
commit6b15d9ca7f555b7366ed810e2334d614b96361ad
tree619fe5fb15ae562f41f9925a01b21fe9455ebf2e
parent4dfd4f1dfe0d3ddbc22392ad7fc124b4820542dd
diff: fix leak when parsing invalid ignore regex option

When parsing invalid ignore regexes passed via the `-I` option we don't
free already-allocated memory, leading to a memory leak. Fix this.

Signed-off-by: Patrick Steinhardt <redacted>
Signed-off-by: Junio C Hamano <redacted>
diff.c
t/t4013-diff-various.sh
git clone https://git.99rst.org/PROJECT