Author: sginsberg
Date: Thu Sep 25 13:49:27 2008
New Revision: 36518
URL:
http://svn.reactos.org/svn/reactos?rev=36518&view=rev
Log:
- 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
Modified:
trunk/reactos/ntoskrnl/config/cminit.c
Modified: trunk/reactos/ntoskrnl/config/cminit.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/config/cminit.c?r…
==============================================================================
--- trunk/reactos/ntoskrnl/config/cminit.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/config/cminit.c [iso-8859-1] Thu Sep 25 13:49:27 2008
@@ -464,8 +464,7 @@
/* 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;