mirror of
https://github.com/curl/curl.git
synced 2026-08-25 02:23:31 +03:00
openssl quic: fix memory leak
When a OpenSSL quic connection filter is aborted early, as the server was not responding, the ssl instances where not closed as they should. Fixes #14720 Reported-by: ralfjunker on github Closes #14724
This commit is contained in:
parent
6354b35dfe
commit
4abf2b9699
1 changed files with 2 additions and 0 deletions
|
|
@ -434,6 +434,8 @@ static void cf_osslq_destroy(struct Curl_cfilter *cf, struct Curl_easy *data)
|
|||
CURL_TRC_CF(data, cf, "destroy");
|
||||
if(ctx) {
|
||||
CURL_TRC_CF(data, cf, "cf_osslq_destroy()");
|
||||
if(ctx->tls.ossl.ssl)
|
||||
cf_osslq_ctx_close(ctx);
|
||||
cf_osslq_ctx_free(ctx);
|
||||
}
|
||||
cf->ctx = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue