diff --git a/src/encoder.c b/src/encoder.c index f5cae6cb..4376b59f 100644 --- a/src/encoder.c +++ b/src/encoder.c @@ -143,7 +143,7 @@ static int p11prov_rsa_encoder_encode_text(void *inctx, OSSL_CORE_BIO *cbio, uri = p11prov_key_to_uri(ctx->provctx, key, selection); if (uri) { BIO_printf(out, "URI %s\n", uri); - free(uri); + OPENSSL_free(uri); } BIO_free(out);