summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-01-11 15:20:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:43 -0500
commit0c440d6506db46fdc7a26f5ef2790b6f4644f6e5 (patch)
treeb7d1e728720ce103c4713a497e7d1591198a4469
parentffb8c82424a9d58a3dee1c42b7a64ab15711345b (diff)
downloadsamba-0c440d6506db46fdc7a26f5ef2790b6f4644f6e5.tar.gz
samba-0c440d6506db46fdc7a26f5ef2790b6f4644f6e5.tar.bz2
samba-0c440d6506db46fdc7a26f5ef2790b6f4644f6e5.zip
r4687: use struct type and location for easier finding
metze (This used to be commit a88aac7a397972c52ca2fb192b58f2a172630a6e)
-rw-r--r--source4/lib/talloc/talloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/talloc/talloc.h b/source4/lib/talloc/talloc.h
index 5ac5888876..cf03ce5952 100644
--- a/source4/lib/talloc/talloc.h
+++ b/source4/lib/talloc/talloc.h
@@ -37,7 +37,7 @@ typedef void TALLOC_CTX;
#endif
/* useful macros for creating type checked pointers */
-#define talloc(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type)
+#define talloc(ctx, type) (type *)talloc_named_const(ctx, sizeof(type), #type ": " __location__)
#define talloc_size(ctx, size) talloc_named_const(ctx, size, __location__)
#define talloc_new(ctx) talloc_named_const(ctx, 0, "talloc_new: " __location__)