Fix a possible memory leak in ct_move_scts
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 17 Nov 2023 13:47:36 +0000 (14:47 +0100)
committerTomas Mraz <tomas@openssl.org>
Tue, 28 Nov 2023 18:42:32 +0000 (19:42 +0100)
commita435d786046fabc85acdb89cbf47f154a09796e1
tree88913a22837f8fd08392147d1072c401233e0bd7
parentd7c0fc5b1a7b5cb2219f8d89a861f3879582fc16
Fix a possible memory leak in ct_move_scts

Instead of trying to move the doomed sct back
to the src stack, which may fail as well, simply
free the sct object, as the src list will be
deleted anyway.

Reviewed-by: Paul Yang <kaishen.yy@antfin.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22762)
ssl/ssl_lib.c