From c094c232eb3246154265bb035182f92fe1b17ab8 Mon Sep 17 00:00:00 2001 From: Martin Sebor Date: Tue, 25 Jan 2022 15:39:38 -0700 Subject: Avoid -Wuse-after-free in tests [BZ #26779]. Reviewed-by: Carlos O'Donell --- malloc/tst-obstack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'malloc/tst-obstack.c') diff --git a/malloc/tst-obstack.c b/malloc/tst-obstack.c index 18af8ea62f..d80f471fa0 100644 --- a/malloc/tst-obstack.c +++ b/malloc/tst-obstack.c @@ -20,8 +20,8 @@ verbose_malloc (size_t size) static void verbose_free (void *buf) { - free (buf); printf ("free (%p)\n", buf); + free (buf); } static int -- cgit v1.2.3