← Commit list

32531f20f9

Daniel Stenberg
Daniel Stenberg
2026-03-16
SUCCESS Duration: 408s

Subject

doh: fix memory-leak when doing a second DoH resolve

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/doh.c+1 -0
@@ -448,6 +448,7 @@ CURLcode Curl_doh(struct Curl_easy *data, const char *hostname,
data->state.async.done = FALSE;
data->state.async.port = port;
data->state.async.ip_version = ip_version;
+ curlx_free(data->state.async.hostname);
data->state.async.hostname = curlx_strdup(hostname);
if(!data->state.async.hostname)
return CURLE_OUT_OF_MEMORY;