s3: Attempt to fix bug 7665
authorVolker Lendecke <vl@samba.org>
Sat, 2 Oct 2010 09:50:26 +0000 (11:50 +0200)
committerKarolin Seeger <kseeger@samba.org>
Sat, 5 Mar 2011 13:34:32 +0000 (14:34 +0100)
commit2f7bcbc8806d0d2ad15d3137dd05d6f8e976659e
treecbaa12d4c27d77921f8246d745cf98c3a4f51785
parent43bbd23e628a0bcd17b7a37301a9af7e5f89d1b2
s3: Attempt to fix bug 7665

Quite a few of our internal routines put stuff on talloc_tos() these days.
In top-level netapi routines, properly allocate a stackframe and clean it
again. Also, don't leak memory in the rpccli_ callers onto the libnetapi
context.
(cherry picked from commit c4421a287c7e613c0c8da188a6ae8db37e90c8fc)
source3/lib/netapi/file.c
source3/lib/netapi/getdc.c
source3/lib/netapi/group.c
source3/lib/netapi/joindomain.c
source3/lib/netapi/libnetapi.c
source3/lib/netapi/localgroup.c
source3/lib/netapi/netlogon.c
source3/lib/netapi/serverinfo.c
source3/lib/netapi/share.c
source3/lib/netapi/shutdown.c
source3/lib/netapi/user.c