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