]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix test failure in 90-test_memleak.t
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 27 Dec 2024 22:02:47 +0000 (23:02 +0100)
committerTomas Mraz <tomas@openssl.org>
Mon, 6 Jan 2025 19:55:53 +0000 (20:55 +0100)
commit160ce57356852c2e3bc1fcc47aa8240a21c1f83e
tree57b9c97253919ae7fe7d60e217709b0108eaa909
parent2a3272eaeff47895afa1cdda9b3edc02dc7ee33c
Fix test failure in 90-test_memleak.t

recent gcc versions can optimize the memory leak away,
avoid that by declaring the lost variable to be volatile.

Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26269)

(cherry picked from commit eeb3266ebba6d70df31f20e4ebd46065fc917ce5)
test/memleaktest.c