mirror of
https://github.com/curl/curl.git
synced 2026-05-16 14:46:21 +03:00
ldap: fix to not leak attribute on OOM (WinLDAP)
Reported-by: Andrew Nesbitt Closes #21576
This commit is contained in:
parent
54d5de5305
commit
eca309c2a1
1 changed files with 1 additions and 0 deletions
|
|
@ -474,6 +474,7 @@ static CURLcode ldap_do(struct Curl_easy *data, bool *done)
|
|||
#ifdef USE_WIN32_LDAP
|
||||
char *attr = curlx_convert_tchar_to_UTF8(attribute);
|
||||
if(!attr) {
|
||||
ldap_memfree(attribute);
|
||||
result = CURLE_OUT_OF_MEMORY;
|
||||
goto quit;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue