wsdapi: Use SecureZeroMemory() to clear magic fields.
Signed-off-by: Eric Pouech <epouech@codeweavers.com>
This commit is contained in:
parent
fce67d1ec2
commit
8c259abbe5
1 changed files with 2 additions and 1 deletions
|
@ -73,7 +73,8 @@ static void free_allocation(struct memory_allocation *item)
|
|||
}
|
||||
|
||||
list_remove(&item->entry);
|
||||
item->magic = 0;
|
||||
/* Ensure compiler doesn't optimize out the assignment with 0. */
|
||||
SecureZeroMemory(&item->magic, sizeof(item->magic));
|
||||
free(item);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue