← Commit list

74f7505974

Daniel Stenberg
Daniel Stenberg
2025-11-23
SUCCESS Duration: 146s

Subject

asyn-ares: remove hostname free on OOM

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/asyn-ares.c+1 -3
@@ -748,10 +748,8 @@ struct Curl_addrinfo *Curl_async_getaddrinfo(struct Curl_easy *data,
#ifdef USE_HTTPSRR
if(port != 443) {
rrname = curl_maprintf("_%d_.https.%s", port, hostname);
- if(!rrname) {
- free(data->state.async.hostname);
+ if(!rrname)
return NULL;
- }
}
#endif