git.samba.org
/
jra
/
samba
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
r6640: Attempt to fix 'make everything' with the paranoid malloc checker.
[jra/samba/.git]
/
source3
/
torture
/
locktest2.c
diff --git
a/source3/torture/locktest2.c
b/source3/torture/locktest2.c
index 5fbaf9ec584ed8a1259206abc7b6102c0a2f1002..45c0890dc3d0dd4dda3861627de7054c546f1d1c 100644
(file)
--- 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<numops; n++) {
recorded[n].conn = random() % NCONNECTIONS;