diff options
-rw-r--r-- | source3/include/smb_macros.h | 4 |
1 files changed, 3 insertions, 1 deletions
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) |