8249144: Potential memory leak in TypedMethodOptionMatcher
Reviewed-by: thartmann
This commit is contained in:
parent
895cc4f0a2
commit
84429cd944
@ -247,6 +247,11 @@ TypedMethodOptionMatcher* TypedMethodOptionMatcher::clone() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
TypedMethodOptionMatcher::~TypedMethodOptionMatcher() {
|
TypedMethodOptionMatcher::~TypedMethodOptionMatcher() {
|
||||||
|
if (type() == CcstrType) {
|
||||||
|
ccstr v = value<ccstr>();
|
||||||
|
os::free((void*)v);
|
||||||
|
}
|
||||||
|
|
||||||
if (_option != NULL) {
|
if (_option != NULL) {
|
||||||
os::free((void*)_option);
|
os::free((void*)_option);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user