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)