1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

Avoid -Wuse-after-free in tests [BZ #26779].

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
Martin Sebor
2022-01-25 15:39:38 -07:00
parent e4ba8fee1a
commit c094c232eb
6 changed files with 60 additions and 2 deletions

View File

@ -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