Commit d5c7ef62 authored by Dmitriy Vyukov's avatar Dmitriy Vyukov

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
parent 91d35ad1
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment