diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-07-18 15:07:28 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-07-18 15:07:28 +0930 |
commit | 06731bc28f5bff963f75451a0d7dd7445e94407c (patch) | |
tree | 1e428344aea0f09620fc3e1c93fa2a2f3d514f59 /source3/lib/netapi | |
parent | d54ebd36cc95ae13844bd00d5bbb2e3ff1a06285 (diff) | |
download | samba-06731bc28f5bff963f75451a0d7dd7445e94407c.tar.gz samba-06731bc28f5bff963f75451a0d7dd7445e94407c.tar.bz2 samba-06731bc28f5bff963f75451a0d7dd7445e94407c.zip |
source3/netapi: fix only caller which doesn't set up a talloc_stackframe()
libnetapi_free() needs a stackframe too; looked like Andrew and Günther
missed this in a37de9a95974c138d264d9cb0c7829bb426bb2d6.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r-- | source3/lib/netapi/netapi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/lib/netapi/netapi.c b/source3/lib/netapi/netapi.c index 34609ff13e..b1586ebee6 100644 --- a/source3/lib/netapi/netapi.c +++ b/source3/lib/netapi/netapi.c @@ -162,10 +162,13 @@ NET_API_STATUS libnetapi_getctx(struct libnetapi_ctx **ctx) NET_API_STATUS libnetapi_free(struct libnetapi_ctx *ctx) { + TALLOC_CTX *frame; + if (!ctx) { return NET_API_STATUS_SUCCESS; } + frame = talloc_stackframe(); libnetapi_samr_free(ctx); libnetapi_shutdown_cm(ctx); @@ -190,6 +193,7 @@ NET_API_STATUS libnetapi_free(struct libnetapi_ctx *ctx) TALLOC_FREE(ctx); gfree_debugsyms(); + talloc_free(frame); return NET_API_STATUS_SUCCESS; } |