summaryrefslogtreecommitdiff
path: root/source3/lib/netapi
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-01-07 22:48:19 +0100
committerGünther Deschner <gd@samba.org>2008-01-07 22:57:30 +0100
commite3ea1e1391a10fb1f4708abab038c0cfc2b86b41 (patch)
treeff4e5e485d16712f530cf9723ca9195d8a15a075 /source3/lib/netapi
parentf7bf4cb3f17b5356b93c4ec89c300ad5dc20d2bc (diff)
downloadsamba-e3ea1e1391a10fb1f4708abab038c0cfc2b86b41.tar.gz
samba-e3ea1e1391a10fb1f4708abab038c0cfc2b86b41.tar.bz2
samba-e3ea1e1391a10fb1f4708abab038c0cfc2b86b41.zip
Enable talloc reporting in libnetapi if DEVELOPER compiled.
Guenther (This used to be commit 01e9151546a83e0c772a144efa85437ca0c8a307)
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r--source3/lib/netapi/netapi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/netapi/netapi.c b/source3/lib/netapi/netapi.c
index d5527dc4ff..61b51909c9 100644
--- a/source3/lib/netapi/netapi.c
+++ b/source3/lib/netapi/netapi.c
@@ -39,6 +39,9 @@ NET_API_STATUS libnetapi_init(struct libnetapi_ctx **context)
return NET_API_STATUS_SUCCESS;
}
+#ifdef DEVELOPER
+ talloc_enable_leak_report();
+#endif
frame = talloc_stackframe();
ctx = talloc_zero(frame, struct libnetapi_ctx);