diff options
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r-- | winsup/cygwin/cygheap.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc index be52f0446..c6ea68419 100644 --- a/winsup/cygwin/cygheap.cc +++ b/winsup/cygwin/cygheap.cc @@ -132,6 +132,7 @@ cygheap_fixup_in_child (child_info *ci, bool execed) if (execed) { + cygheap->heapbase = NULL; /* We can allocate the heap anywhere */ /* Walk the allocated memory chain looking for orphaned memory from previous execs */ for (_cmalloc_entry *rvc = cygheap->chain; rvc; rvc = rvc->prev) |