mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-21 15:30:15 -05:00
setup: free old value before setting work_tree
Before assigning to `data->work_tree` in `read_worktree_config()`, free any value we might already have picked up, so that we do not leak it. Signed-off-by: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
ecbdaf0899
commit
13019979b8
Reference in New Issue
Block a user