From 526351bed9fff47797f8baeb512207a924757716 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 4 May 2005 16:19:23 +0000 Subject: r6613: Merge back fix for PARANOID_MALLOC checker. Jeremy. (This used to be commit 9c8d0efbfdcf9f4558ef3c7d5623558e7142d7ad) --- source3/include/smb_macros.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/include/smb_macros.h') diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h index 53c4ad046d..7e90f01b5f 100644 --- a/source3/include/smb_macros.h +++ b/source3/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) -- cgit