Commit 8c259abb authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

wsdapi: Use SecureZeroMemory() to clear magic fields.

parent fce67d1e
...@@ -73,7 +73,8 @@ static void free_allocation(struct memory_allocation *item) ...@@ -73,7 +73,8 @@ static void free_allocation(struct memory_allocation *item)
} }
list_remove(&item->entry); 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); free(item);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment