r4088: Get medieval on our ass about malloc.... :-). Take control of all our allocation
[idra/samba.git] / source3 / nmbd / nmbd_synclists.c
index 86f1f760fd23029cd187c1241711d4278097bed5..c6bcb3e574284b862f2688530489344cf6b46657 100644 (file)
@@ -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);