speed: Fix memory leak
authorIngo Franzki <ifranzki@linux.ibm.com>
Wed, 19 Jul 2023 12:59:16 +0000 (14:59 +0200)
committerPauli <pauli@openssl.org>
Fri, 21 Jul 2023 00:08:10 +0000 (10:08 +1000)
commitcc7e2b20de02959c328f96e464e5fb8b256a00e0
tree498081423eb849ca411980ebfa58173e5fdaee01
parent51a7066e2092b062a502e29166adfcc297803058
speed: Fix memory leak

Free the signature stack after iterating over all found signatures.
Free the kem and signature stacks at the end of speed_main() if not
NULL.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21491)
apps/speed.c