malloc: Exit early on test failure in tst-realloc
commitd653fd2d9ebe23c2b16b76edf717c5dbd5ce9b77
authorFlorian Weimer <fweimer@redhat.com>
Thu, 10 Mar 2022 07:50:51 +0000 (10 08:50 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 10 Mar 2022 07:50:51 +0000 (10 08:50 +0100)
treecdab32786b16825789fe26dcbeea2f4546bbf057
parent590f5992b66a0f105eabf2eae35e8704cbf9a59e
malloc: Exit early on test failure in tst-realloc

This addresses more (correct) use-after-free warnings reported by
GCC 12 on some targets.

Fixes commit c094c232eb3246154265bb035182f92fe1b17ab8 ("Avoid
-Wuse-after-free in tests [BZ #26779].").

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
malloc/tst-realloc.c