mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:03:02 +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 */
|
/* Check if we don't need to create a log file */
|
||||||
if (!Extension)
|
if (!Extension)
|
||||||
{
|
{
|
||||||
/* We're done, close handles and free buffers */
|
/* We're done, close handles */
|
||||||
if (NameBuffer) ExFreePool(NameBuffer);
|
|
||||||
ObDereferenceObject(Event);
|
ObDereferenceObject(Event);
|
||||||
ZwClose(EventHandle);
|
ZwClose(EventHandle);
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue