diff options
Diffstat (limited to 'source4/torture/locktest.c')
-rw-r--r-- | source4/torture/locktest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/locktest.c b/source4/torture/locktest.c index d25625df1e..9c7c363259 100644 --- a/source4/torture/locktest.c +++ b/source4/torture/locktest.c @@ -317,7 +317,7 @@ static void test_locks(char *share[NSERVERS]) ZERO_STRUCT(fnum); ZERO_STRUCT(cli); - recorded = (struct record *)malloc(sizeof(*recorded) * numops); + recorded = malloc_array_p(struct record, numops); for (n=0; n<numops; n++) { #if PRESETS |