Author: fireball
Date: Thu Jul 13 11:17:13 2006
New Revision: 23040
URL:
http://svn.reactos.org/svn/reactos?rev=23040&view=rev
Log:
Free the buffer as MSDN says
Modified:
trunk/reactos/ntoskrnl/wmi/wmi.c
Modified: trunk/reactos/ntoskrnl/wmi/wmi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/wmi/wmi.c?rev=230…
==============================================================================
--- trunk/reactos/ntoskrnl/wmi/wmi.c (original)
+++ trunk/reactos/ntoskrnl/wmi/wmi.c Thu Jul 13 11:17:13 2006
@@ -64,6 +64,10 @@
{
DPRINT1("IoWMIWriteEvent() called for WnodeEventItem %p, returning
success\n",
WnodeEventItem);
+
+ /* Free the buffer if we are returning success */
+ if (WnodeEventItem != NULL)
+ ExFreePool(WnodeEventItem);
return STATUS_SUCCESS;
}