diff options
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r-- | src/common/crypto.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index c4a06c7c1..ad9e11a26 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -486,6 +486,7 @@ crypto_pk_write_public_key_to_string(crypto_pk_env_t *env, char **dest, */ if (!PEM_write_bio_RSAPublicKey(b, env->key)) { crypto_log_errors(LOG_WARN, "writing public key to string"); + /* XXX020 leaks b? maybe "BIO_free(b);" would be smart here. -RD */ return -1; } |