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.
This commit is contained in:
parent
52911fc66c
commit
ff83800839
|
@ -963,7 +963,7 @@ xdg_user_dir_lookup_error:
|
||||||
if (FAILED(hr))
|
if (FAILED(hr))
|
||||||
{
|
{
|
||||||
for (i = 0; i < num_dirs; i++) HeapFree(GetProcessHeap(), 0, out[i]);
|
for (i = 0; i < num_dirs; i++) HeapFree(GetProcessHeap(), 0, out[i]);
|
||||||
HeapFree(GetProcessHeap(), 0, out_ptr);
|
HeapFree(GetProcessHeap(), 0, *out_ptr);
|
||||||
}
|
}
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue