git.samba.org
/
idra
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
r4088: Get medieval on our ass about malloc.... :-). Take control of all our allocation
[idra/samba.git]
/
source3
/
nmbd
/
nmbd_synclists.c
diff --git
a/source3/nmbd/nmbd_synclists.c
b/source3/nmbd/nmbd_synclists.c
index 86f1f760fd23029cd187c1241711d4278097bed5..c6bcb3e574284b862f2688530489344cf6b46657 100644
(file)
--- a/
source3/nmbd/nmbd_synclists.c
+++ b/
source3/nmbd/nmbd_synclists.c
@@
-143,7
+143,7
@@
done:
return;
}
- s =
(struct sync_record *)malloc(sizeof(*s)
);
+ s =
SMB_MALLOC_P(struct sync_record
);
if (!s) goto done;
ZERO_STRUCTP(s);