← Commit list

cbb5544c45

huanghuihui0904
huanghuihui0904
2026-03-09
SUCCESS Duration: 317s

Subject

digest: fix memory leak in auth_create_digest_http_message()

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/vauth/digest.c+3 -1
@@ -809,8 +809,10 @@ static CURLcode auth_create_digest_http_message(
char *hashthis2;
result = hash(hashbuf, (const unsigned char *)"", 0);
- if(result)
+ if(result) {
+ curlx_free(hashthis);
goto oom;
+ }
convert_to_ascii(hashbuf, (unsigned char *)hashed);
hashthis2 = curl_maprintf("%s:%s", hashthis, hashed);