From 55739e9f860a2a8f27a99fc2f79905a8ed143fee Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 7 May 2005 06:59:00 +0000 Subject: r6640: Attempt to fix 'make everything' with the paranoid malloc checker. Volker (This used to be commit 3db2799822da3711b47b60ba13daa07205ced45f) --- source3/torture/locktest2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/torture/locktest2.c') diff --git a/source3/torture/locktest2.c b/source3/torture/locktest2.c index 5fbaf9ec58..45c0890dc3 100644 --- a/source3/torture/locktest2.c +++ b/source3/torture/locktest2.c @@ -373,7 +373,7 @@ static void test_locks(char *share1, char *share2, char *nfspath1, char *nfspath ZERO_STRUCT(fnum); ZERO_STRUCT(cli); - recorded = (struct record *)malloc(sizeof(*recorded) * numops); + recorded = SMB_MALLOC_ARRAY(struct record, numops); for (n=0; n