Commit ff838008 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

shell32: Free the correct pointer in XDG_UserDirLookup.

out_ptr is a stack variable. *out_ptr is heap allocated and is what was meant to be freed.
parent 52911fc6
......@@ -963,7 +963,7 @@ xdg_user_dir_lookup_error:
if (FAILED(hr))
{
for (i = 0; i < num_dirs; i++) HeapFree(GetProcessHeap(), 0, out[i]);
HeapFree(GetProcessHeap(), 0, out_ptr);
HeapFree(GetProcessHeap(), 0, *out_ptr);
}
return hr;
}
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