From 850c67606e56e1a47fa0466e127f7b8ceda6ebe3 Mon Sep 17 00:00:00 2001 From: Paul Pluzhnikov Date: Sat, 11 Jun 2016 14:50:16 -0700 Subject: 2016-06-11 Paul Pluzhnikov [BZ #19670] [BZ #19672] * io/test-lfs.c (do_prepare): Use xmalloc. * io/tst-fcntl.c (do_prepare): Likewise. * libio/tst-fopenloc.c (do_bz17916): Likewise. * libio/tst-mmap2-eofsync.c (do_prepare): Likewise. * posix/tst-exec.c (do_prepare): Likewise. * posix/tst-pathconf.c (prepare): Likewise. * posix/tst-spawn.c (do_prepare): Likewise. * posix/tst-truncate.c (do_prepare): Likewise. * rt/tst-aio.c (do_prepare): Likewise. --- io/test-lfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io/test-lfs.c') diff --git a/io/test-lfs.c b/io/test-lfs.c index 3088a21..0c91177 100644 --- a/io/test-lfs.c +++ b/io/test-lfs.c @@ -53,7 +53,7 @@ do_prepare (int argc, char *argv[]) struct rlimit64 rlim; name_len = strlen (test_dir); - name = malloc (name_len + sizeof ("/lfsXXXXXX")); + name = xmalloc (name_len + sizeof ("/lfsXXXXXX")); mempcpy (mempcpy (name, test_dir, name_len), "/lfsXXXXXX", sizeof ("/lfsXXXXXX")); -- cgit v1.1