summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-12 01:48:22 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-12 01:48:22 +0200
commit771e25b63b8435b2e9ae201017516ea700890190 (patch)
treef8dd27634f3d3b5d176c4e5b85719183b906f503 /lib
parent348be5f1e44c0b17ff87a8964a36e83b291a6518 (diff)
downloadsamba-771e25b63b8435b2e9ae201017516ea700890190.tar.gz
samba-771e25b63b8435b2e9ae201017516ea700890190.tar.bz2
samba-771e25b63b8435b2e9ae201017516ea700890190.zip
Avoid problems with paranoid malloc checker.
Diffstat (limited to 'lib')
-rw-r--r--lib/util/xfile.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/util/xfile.c b/lib/util/xfile.c
index 7cfb68018e..36d56e59ff 100644
--- a/lib/util/xfile.c
+++ b/lib/util/xfile.c
@@ -38,9 +38,7 @@
#if _SAMBA_BUILD_ == 3
#undef malloc
-#define malloc SMB_MALLOC
-#undef malloc_p
-#define malloc_p SMB_MALLOC_P
+#define malloc_p(type) malloc(sizeof(type))
#endif
#define XBUFSIZE BUFSIZ