aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/bench/mem-memcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/bench/mem-memcpy.c')
-rw-r--r--tools/perf/bench/mem-memcpy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/bench/mem-memcpy.c b/tools/perf/bench/mem-memcpy.c
index 5165fd1d8d2c..89773178e894 100644
--- a/tools/perf/bench/mem-memcpy.c
+++ b/tools/perf/bench/mem-memcpy.c
@@ -127,11 +127,11 @@ int bench_mem_memcpy(int argc, const char **argv,
127 return 1; 127 return 1;
128 } 128 }
129 129
130 dst = calloc(length, sizeof(char)); 130 dst = zalloc(length);
131 if (!dst) 131 if (!dst)
132 die("memory allocation failed - maybe length is too large?\n"); 132 die("memory allocation failed - maybe length is too large?\n");
133 133
134 src = calloc(length, sizeof(char)); 134 src = zalloc(length);
135 if (!src) 135 if (!src)
136 die("memory allocation failed - maybe length is too large?\n"); 136 die("memory allocation failed - maybe length is too large?\n");
137 137