diff options
author | Sean Gillespie <sean@swgillespie.me> | 2017-04-27 10:09:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-27 10:09:32 -0700 |
commit | b06509c4f35212f097345bba7404b47da86b96c5 (patch) | |
tree | 2b5c3a7b2e1addf453718288fca8d395ea71014e /src/gc/objecthandle.cpp | |
parent | 8291db8bdb49768a7620a98865ad642d639c9c87 (diff) | |
download | coreclr-b06509c4f35212f097345bba7404b47da86b96c5.tar.gz coreclr-b06509c4f35212f097345bba7404b47da86b96c5.tar.bz2 coreclr-b06509c4f35212f097345bba7404b47da86b96c5.zip |
Fix a double-free encountered when failing to initialize a handle table bucket (#11244)
* Fix a double-free encountered when failing to initialize a handle table bucket
* Don't free m_bucket in the destructor of HandleTableBucketHolder
Diffstat (limited to 'src/gc/objecthandle.cpp')
-rw-r--r-- | src/gc/objecthandle.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gc/objecthandle.cpp b/src/gc/objecthandle.cpp index dd43ec23d5..7df915fb72 100644 --- 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() |