Skip to content

Commit

Permalink
Fix a bug with freeing up the memory of an object for which memory is…
Browse files Browse the repository at this point in the history
… allocated using openssl

Signed-off-by: Eduard Sabirov <[email protected]>
  • Loading branch information
Eduard Sabirov committed Dec 27, 2024
1 parent d0a3393 commit 90a0b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 90a0b8a

Please sign in to comment.