projects
/
platform
/
upstream
/
coreclr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8291db8
)
Fix a double-free encountered when failing to initialize a handle table bucket (...
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
src/gc/objecthandle.cpp
patch
|
blob
|
history
diff --git
a/src/gc/objecthandle.cpp
b/src/gc/objecthandle.cpp
index
dd43ec2
..
7df915f
100644
(file)
--- a/
src/gc/objecthandle.cpp
+++ b/
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()