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 New Issue