mirror of
https://github.com/golang/go
synced 2024-11-22 04:14:42 -07:00
cmd/dist: fix crash on windows
currently 'dist install' always crashes on windows R=golang-dev, r CC=golang-dev https://golang.org/cl/11919043
This commit is contained in:
parent
91d35ad1b8
commit
d5c7ef6216
2
src/cmd/dist/windows.c
vendored
2
src/cmd/dist/windows.c
vendored
@ -465,7 +465,7 @@ xrealwd(Buf *b, char *path)
|
||||
torune(&rnew, path);
|
||||
if(!SetCurrentDirectoryW(rnew))
|
||||
fatal("chdir %s: %s", path, errstr());
|
||||
free(rnew);
|
||||
xfree(rnew);
|
||||
xgetwd(b);
|
||||
if(!SetCurrentDirectoryW(old)) {
|
||||
breset(b);
|
||||
|
Loading…
Reference in New Issue
Block a user