projects
/
platform
/
upstream
/
dotnet
/
runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6876032
)
Fix a double-free encountered when failing to initialize a handle table bucket (dotne...
author
Sean Gillespie
<sean@swgillespie.me>
Thu, 27 Apr 2017 17:09:32 +0000
(10:09 -0700)
committer
GitHub
<noreply@github.com>
Thu, 27 Apr 2017 17:09:32 +0000
(10:09 -0700)
* Fix a double-free encountered when failing to initialize a handle table bucket
* Don't free m_bucket in the destructor of HandleTableBucketHolder
Commit migrated from https://github.com/dotnet/coreclr/commit/
b06509c4f35212f097345bba7404b47da86b96c5
src/coreclr/src/gc/objecthandle.cpp
patch
|
blob
|
history
diff --git
a/src/coreclr/src/gc/objecthandle.cpp
b/src/coreclr/src/gc/objecthandle.cpp
index
dd43ec2
..
7df915f
100644
(file)
--- a/
src/coreclr/src/gc/objecthandle.cpp
+++ b/
src/coreclr/src/gc/objecthandle.cpp
@@
-608,7
+608,8
@@
HandleTableBucketHolder::~HandleTableBucketHolder()
}
delete [] m_bucket->pTable;
}
- delete m_bucket;
+
+ // we do not own m_bucket, so we shouldn't delete it here.
}
bool Ref_Initialize()