mirror of
https://github.com/git-for-windows/git.git
synced 2026-02-04 03:33:01 -06:00
Fix global repository field not being cleared (#4083)
It is checked for w.r.t. global repository struct down in the callstack in compatibility layer for MinGW before being assigned in the function that `free()`'d it.
This commit is contained in:
commit
240fa13ae4
@ -136,7 +136,7 @@ static void repo_set_commondir(struct repository *repo,
|
||||
{
|
||||
struct strbuf sb = STRBUF_INIT;
|
||||
|
||||
free(repo->commondir);
|
||||
FREE_AND_NULL(repo->commondir);
|
||||
|
||||
if (commondir) {
|
||||
repo->different_commondir = 1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user