diff options
author | Günther Deschner <gd@samba.org> | 2008-04-16 02:16:08 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-04-16 02:16:08 +0200 |
commit | 0a362a94c8f720ad0805c0789433d3e70b86d1c3 (patch) | |
tree | f80e9421b272398450fe850430c71863ecdf2211 /source3/utils/net.c | |
parent | 46e6bc1153dbcf406f873a3e082582a44cd4467e (diff) | |
download | samba-0a362a94c8f720ad0805c0789433d3e70b86d1c3.tar.gz samba-0a362a94c8f720ad0805c0789433d3e70b86d1c3.tar.bz2 samba-0a362a94c8f720ad0805c0789433d3e70b86d1c3.zip |
net/libnetapi: Include netapi headers early and free on exit.
Guenther
(This used to be commit 020b1e6431601fadf44dbfe8393908c096ecfa4c)
Diffstat (limited to 'source3/utils/net.c')
-rw-r--r-- | source3/utils/net.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c index 5706e336de..f6851f69da 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -1169,6 +1169,13 @@ static struct functable net_func[] = { rc = net_run_function(argc_new-1, argv_new+1, net_func, net_help); DEBUG(2,("return code = %d\n", rc)); + + { + struct libnetapi_ctx *ctx = NULL; + libnetapi_getctx(&ctx); + libnetapi_free(ctx); + } + TALLOC_FREE(frame); return rc; } |