[openssl/openssl] 8ef63b: Fix a leak in ossl_encode_ctx_setup_for_pkey

Matt Caswell noreply at github.com
Wed Aug 23 15:18:13 UTC 2023

  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 8ef63b6ff8301a0139c00df6c40173a63fd2db01
  Author: Matt Caswell <matt at openssl.org>
  Date:   2023-08-23 (Wed, 23 Aug 2023)

  Changed paths:
    M crypto/encode_decode/encoder_pkey.c

  Log Message:
  Fix a leak in ossl_encode_ctx_setup_for_pkey

Make sure we free the stack of names we allocated in an error path.

Found by the reproducible error patch in #21668

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit at gmail.com>
(Merged from https://github.com/openssl/openssl/pull/21796)

More information about the openssl-commits mailing list