diff options
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/talloc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/include/talloc.h b/source3/include/talloc.h index a0dc3d9795..85a722d080 100644 --- a/source3/include/talloc.h +++ b/source3/include/talloc.h @@ -21,6 +21,12 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#ifdef DEBUG_TALLOC +#define BAD_PTR (void*)0xdeadbeef +#else +#define BAD_PTR NULL +#endif + struct talloc_chunk { struct talloc_chunk *next; void *ptr; |