Re: [PATCH v2 25/25] submodule_uses_worktrees(): plug memory leak

2017-05-01 Thread Junio C Hamano
Johannes Schindelin writes: > There is really no reason why we would need to hold onto the allocated > string longer than necessary. Yup. The longer we make the duration between the allocation and the standard release, the more likely future code would add early

[PATCH v2 25/25] submodule_uses_worktrees(): plug memory leak

2017-04-28 Thread Johannes Schindelin
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 --- worktree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worktree.c b/worktree.c