mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-27 11:53:32 +00: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