From b62942122a9cbf6e0a30cc425872511e8e51ef19 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 4 May 2005 16:19:23 +0000 Subject: [PATCH] r6613: Merge back fix for PARANOID_MALLOC checker. Jeremy. --- source/include/smb_macros.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/include/smb_macros.h b/source/include/smb_macros.h index 53c4ad046d5..7e90f01b5f9 100644 --- a/source/include/smb_macros.h +++ b/source/include/smb_macros.h @@ -289,7 +289,9 @@ copy an IP address from one buffer to another #define TALLOC_REALLOC_ARRAY(ctx, ptr, type, count) (type *)_talloc_realloc_array(ctx, ptr, sizeof(type), count, #type) #define talloc_destroy(ctx) talloc_free(ctx) -#define PARANOID_MALLOC_CHECKER 1 +#if defined(DEVELOPER) && !defined(SMBMOUNT_MALLOC) +# define PARANOID_MALLOC_CHECKER 1 +#endif #if defined(PARANOID_MALLOC_CHECKER) -- 2.11.4.GIT