submodule_uses_worktrees(): plug memory leak
commitd32de66a07c600c14f70e6d435f8f9c496b0d625
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 4 May 2017 13:59:19 +0000 (4 15:59 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 8 May 2017 03:18:20 +0000 (8 12:18 +0900)
tree4f8767001b38734d53b81b56145e8862a05f4568
parent2e11f58fa6a0c904d9b00e51cfb2d8a3ee77b360
submodule_uses_worktrees(): plug memory leak

There is really no reason why we would need to hold onto the allocated
string longer than necessary.

Reported by Coverity.

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