summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2015-11-14 08:20:54 -0800
committerJan Kotas <jkotas@microsoft.com>2015-11-14 08:20:54 -0800
commitee6d6b9c86b8a50000a9648cfc3be273f5c09ad7 (patch)
tree2ce8a6378b2bdeb59737c9c2a14021c9b9c1f7ba
parentd9baf060f209f20c302700b2aee778b48e32b9dc (diff)
parent0f6dd7966ea98820b10d2dce87a90769eaf644f9 (diff)
downloadcoreclr-ee6d6b9c86b8a50000a9648cfc3be273f5c09ad7.tar.gz
coreclr-ee6d6b9c86b8a50000a9648cfc3be273f5c09ad7.tar.bz2
coreclr-ee6d6b9c86b8a50000a9648cfc3be273f5c09ad7.zip
Merge pull request #2046 from JohnChen0/heap
Remove an unsafe memory write in HeapFree
-rw-r--r--src/pal/src/memory/heap.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/pal/src/memory/heap.cpp b/src/pal/src/memory/heap.cpp
index ff1f2a2133..732fe9aee8 100644
--- a/src/pal/src/memory/heap.cpp
+++ b/src/pal/src/memory/heap.cpp
@@ -309,8 +309,6 @@ HeapFree(
goto done;
}
- *((DWORD *) lpMem) = 0;
-
bRetVal = TRUE;
#ifdef __APPLE__
// This is patterned off of InternalFree in malloc.cpp.