Commit 3cb938fd authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

wsdapi: Fix use-after-free when checking for unique prefix (Valgrind).

parent cd4139df
......@@ -529,6 +529,7 @@ static HRESULT WINAPI IWSDXMLContextImpl_AddNamespace(IWSDXMLContext *iface, LPC
if (setNewPrefix)
{
WSDFreeLinkedMemory((void *)ns->PreferredPrefix);
ns->PreferredPrefix = NULL;
if ((newPrefix != NULL) && (is_prefix_unique(This->namespaces, newPrefix)))
{
......
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