Skip to content

Commit 22b8a64

Browse files
x2018bagder
authored andcommitted
openssl: fix a potential memory leak of params.cert
Closes curl#19560
1 parent a6c940a commit 22b8a64

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/vtls/openssl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,6 +1214,7 @@ static int engineload(struct Curl_easy *data,
12141214
failf(data, "unable to set client certificate [%s]",
12151215
ossl_strerror(ERR_get_error(), error_buffer,
12161216
sizeof(error_buffer)));
1217+
X509_free(params.cert);
12171218
return 0;
12181219
}
12191220
X509_free(params.cert); /* we do not need the handle any more... */

0 commit comments

Comments
 (0)