mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
Free the buffer as MSDN says
svn path=/trunk/; revision=23040
This commit is contained in:
@@ -65,6 +65,10 @@ IoWMIWriteEvent(IN PVOID WnodeEventItem)
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user