1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

wsdapi: Use SecureZeroMemory() to clear magic fields.

Signed-off-by: Eric Pouech <epouech@codeweavers.com>
This commit is contained in:
Eric Pouech 2023-11-08 09:27:39 +01:00 committed by Alexandre Julliard
parent fce67d1ec2
commit 8c259abbe5

View file

@ -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);
}