diff options
author | Petr Gotthard <petr.gotthard@centrum.cz> | 2021-05-25 15:39:01 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2021-05-28 11:11:53 +0200 |
commit | 32075a17249636b3e2986a0ac422b1803663ccaa (patch) | |
tree | 40ac9f3832782dcfe793ac8046b0a7a457c0029c /crypto/cmp/cmp_local.h | |
parent | a935791d54078f43209ffbc1886ac5e68772ce34 (diff) |
Fix memory leak in OSSL_CMP_CTX
The ctx->propq is strdup'ed, so it must be free'd too.
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15458)
Diffstat (limited to 'crypto/cmp/cmp_local.h')
-rw-r--r-- | crypto/cmp/cmp_local.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cmp/cmp_local.h b/crypto/cmp/cmp_local.h index eee609937b..fec4916ed3 100644 --- a/crypto/cmp/cmp_local.h +++ b/crypto/cmp/cmp_local.h @@ -32,7 +32,7 @@ */ struct ossl_cmp_ctx_st { OSSL_LIB_CTX *libctx; - const char *propq; + char *propq; OSSL_CMP_log_cb_t log_cb; /* log callback for error/debug/etc. output */ OSSL_CMP_severity log_verbosity; /* level of verbosity of log output */ |