mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 05:51:44 +00:00
- CmpOpenHiveFiles: If "Extension" is false then we won't have allocated any buffer, so there will never be a buffer to free
- Fix for Coverity Error CID: 29 svn path=/trunk/; revision=36518
This commit is contained in:
parent
ac376c0adb
commit
b1a8e2b3fd
1 changed files with 1 additions and 2 deletions
|
@ -464,8 +464,7 @@ CmpOpenHiveFiles(IN PCUNICODE_STRING BaseName,
|
|||
/* Check if we don't need to create a log file */
|
||||
if (!Extension)
|
||||
{
|
||||
/* We're done, close handles and free buffers */
|
||||
if (NameBuffer) ExFreePool(NameBuffer);
|
||||
/* We're done, close handles */
|
||||
ObDereferenceObject(Event);
|
||||
ZwClose(EventHandle);
|
||||
return STATUS_SUCCESS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue