]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/worktree.c
show_worktree(): plug memory leak
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 4 May 2017 13:59:13 +0000 (15:59 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 8 May 2017 03:18:20 +0000 (12:18 +0900)
commit2e11f58fa6a0c904d9b00e51cfb2d8a3ee77b360
tree268786c219d42ae0975509ddbc4ac6fe2731d16a
parent5308224633cf138f436357b2a8a87a546373af72
show_worktree(): plug memory leak

The buffer allocated by shorten_unambiguous_ref() needs to be released.

Discovered by Coverity.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/worktree.c