mirror of
https://github.com/reactos/reactos.git
synced 2026-07-07 11:50:19 +08:00
[REGEXPL]
Fix memory leaks Fix broken if condition Use delete[] operator for allocations made with new[] operator Properly check for failed allocations by not throwing exception svn path=/trunk/; revision=54034
This commit is contained in:
@@ -415,7 +415,7 @@ CheckValueArgument:
|
||||
|
||||
SkipValueCommand:
|
||||
if (pDataBuffer)
|
||||
delete pDataBuffer;
|
||||
delete[] pDataBuffer;
|
||||
return 0;
|
||||
ValueCommandNAonRoot:
|
||||
rConsole.Write(VALUE_CMD COMMAND_NA_ON_ROOT);
|
||||
|
||||
Reference in New Issue
Block a user