mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
Free the buffer as MSDN says
svn path=/trunk/; revision=23040
This commit is contained in:
parent
77203d0406
commit
d5f8964338
1 changed files with 4 additions and 0 deletions
|
@ -65,6 +65,10 @@ IoWMIWriteEvent(IN PVOID WnodeEventItem)
|
||||||
DPRINT1("IoWMIWriteEvent() called for WnodeEventItem %p, returning success\n",
|
DPRINT1("IoWMIWriteEvent() called for WnodeEventItem %p, returning success\n",
|
||||||
WnodeEventItem);
|
WnodeEventItem);
|
||||||
|
|
||||||
|
/* Free the buffer if we are returning success */
|
||||||
|
if (WnodeEventItem != NULL)
|
||||||
|
ExFreePool(WnodeEventItem);
|
||||||
|
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue