]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: fix crash on windows
authorDmitriy Vyukov <dvyukov@google.com>
Sat, 27 Jul 2013 09:53:18 +0000 (13:53 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Sat, 27 Jul 2013 09:53:18 +0000 (13:53 +0400)
currently 'dist install' always crashes on windows

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/11919043

src/cmd/dist/windows.c

index 75f7896eb7bba6ecd588d51f38c6fe14b8a4e58c..7d03989b27840902390059d8542f74da3d528790 100644 (file)
@@ -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);