← Commit list

eca309c2a1

Viktor Szakats
Viktor Szakats
2026-05-13
SUCCESS Duration: 218s

Subject

ldap: fix to not leak `attribute` on OOM (WinLDAP)

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/ldap.c+1 -0
@@ -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;
}