mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
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 a37de9a959
.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user