Debugger Kit: Fix PVS V773
Fix ThreadHandler::_HandleBreakpointConditionIfNeeded() was exited without releasing 'listener' pointer. Change-Id: I79b72701b5bcf9a8faeacc6d37eb39ce4bd5cc68 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2910 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
e53c219e05
commit
022f01ea4d
@@ -949,8 +949,10 @@ ThreadHandler::_HandleBreakpointConditionIfNeeded(CpuState* cpuState)
|
||||
ExpressionInfo* expressionInfo = new(std::nothrow) ExpressionInfo(
|
||||
userBreakpoint->Condition());
|
||||
|
||||
if (expressionInfo == NULL)
|
||||
if (expressionInfo == NULL) {
|
||||
delete listener;
|
||||
return false;
|
||||
}
|
||||
|
||||
BReference<ExpressionInfo> expressionReference(expressionInfo, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user