Enable talloc reporting in libnetapi if DEVELOPER compiled.
authorGünther Deschner <gd@samba.org>
Mon, 7 Jan 2008 21:48:19 +0000 (22:48 +0100)
committerGünther Deschner <gd@samba.org>
Mon, 7 Jan 2008 21:57:30 +0000 (22:57 +0100)
Guenther
(This used to be commit 01e9151546a83e0c772a144efa85437ca0c8a307)

source3/lib/netapi/netapi.c

index d5527dc4ff33ed60cc40f3ec87be9fd7e4bf90de..61b51909c97023013f3bc3ec94a71168956ebb2a 100644 (file)
@@ -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);