summaryrefslogtreecommitdiff
path: root/src/gc/objecthandle.cpp
diff options
context:
space:
mode:
authorSean Gillespie <sean@swgillespie.me>2017-04-27 10:09:32 -0700
committerGitHub <noreply@github.com>2017-04-27 10:09:32 -0700
commitb06509c4f35212f097345bba7404b47da86b96c5 (patch)
tree2b5c3a7b2e1addf453718288fca8d395ea71014e /src/gc/objecthandle.cpp
parent8291db8bdb49768a7620a98865ad642d639c9c87 (diff)
downloadcoreclr-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.cpp3
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()