← Commit list

22b8a6430d

x2018
x2018
2025-11-17
SUCCESS Duration: 202s

Subject

openssl: fix a potential memory leak of params.cert

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/vtls/openssl.c+1 -0
@@ -1214,6 +1214,7 @@ static int engineload(struct Curl_easy *data,
failf(data, "unable to set client certificate [%s]",
ossl_strerror(ERR_get_error(), error_buffer,
sizeof(error_buffer)));
+ X509_free(params.cert);
return 0;
}
X509_free(params.cert); /* we do not need the handle any more... */