]> granicus.if.org Git - git/commit
diff --color-moved-ws: fix a memory leak
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Thu, 4 Oct 2018 10:07:43 +0000 (11:07 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Oct 2018 05:48:12 +0000 (22:48 -0700)
commitfe4516d103e69e74513be33f78768ac43acf3daa
tree617b37a74c95a17528b4a71f98f0848fc7fe93b1
parentcf074a9b0e589bad8e6b210ac1e3a4714463f7db
diff --color-moved-ws: fix a memory leak

Don't duplicate the indentation string if we're not going to use it.
This was found with asan.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c