mirror of https://github.com/golang/go.git
cmd/dist: do not use HEAP_GENERATE_EXCEPTIONS flag
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5650048
This commit is contained in:
parent
00651a2e63
commit
eaf640dbc4
|
|
@ -735,7 +735,7 @@ xrealloc(void *p, int n)
|
|||
return xmalloc(n);
|
||||
if(HEAP == INVALID_HANDLE_VALUE)
|
||||
HEAP = GetProcessHeap();
|
||||
p = HeapReAlloc(HEAP, HEAP_GENERATE_EXCEPTIONS, p, n);
|
||||
p = HeapReAlloc(HEAP, 0, p, n);
|
||||
if(p == nil)
|
||||
fatal("out of memory reallocating %d", n);
|
||||
return p;
|
||||
|
|
|
|||
Loading…
Reference in New Issue