summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/netapi/netapi.c4
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;
}