about summary refs log tree commit diff
path: root/io/test-lfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'io/test-lfs.c')
-rw-r--r--io/test-lfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io/test-lfs.c b/io/test-lfs.c
index 3088a21fd8..0c911774a7 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"));