mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 05:00:30 +00:00
shlwapi: Fix a string leak (Valgrind).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8e548c41c1
commit
568b08047b
|
@ -958,8 +958,10 @@ HRESULT WINAPI UrlEscapeA(
|
|||
|
||||
if(!RtlCreateUnicodeStringFromAsciiz(&urlW, pszUrl))
|
||||
return E_INVALIDARG;
|
||||
if(dwFlags & URL_ESCAPE_AS_UTF8)
|
||||
if(dwFlags & URL_ESCAPE_AS_UTF8) {
|
||||
RtlFreeUnicodeString(&urlW);
|
||||
return E_NOTIMPL;
|
||||
}
|
||||
if((ret = UrlEscapeW(urlW.Buffer, escapedW, &lenW, dwFlags)) == E_POINTER) {
|
||||
escapedW = HeapAlloc(GetProcessHeap(), 0, lenW * sizeof(WCHAR));
|
||||
ret = UrlEscapeW(urlW.Buffer, escapedW, &lenW, dwFlags);
|
||||
|
|
Loading…
Reference in a new issue