diff options
author | Günther Deschner <gd@samba.org> | 2008-01-07 22:48:19 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-01-07 22:57:30 +0100 |
commit | e3ea1e1391a10fb1f4708abab038c0cfc2b86b41 (patch) | |
tree | ff4e5e485d16712f530cf9723ca9195d8a15a075 /source3/lib/netapi | |
parent | f7bf4cb3f17b5356b93c4ec89c300ad5dc20d2bc (diff) | |
download | samba-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.c | 3 |
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); |