From: Andreas Schneider Date: Wed, 29 Oct 2025 14:11:37 +0000 (+0100) Subject: s3:client: Use a long living memory context for cli_cm_open() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c306aa08eeedb4b35ea3c67cf94442c16ea3c2d9;p=thirdparty%2Fsamba.git s3:client: Use a long living memory context for cli_cm_open() This will fix memory leaks with a later commit. Signed-off-by: Andreas Schneider Reviewed-by: Anoop C S --- diff --git a/source3/client/client.c b/source3/client/client.c index 18a89c8a045..1d3656aab34 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -6246,7 +6246,7 @@ static int process(TALLOC_CTX *mem_ctx, const char *base_directory) struct cli_credentials *creds = samba_cmdline_get_creds(); struct smb_transports ts = smbsock_transports_from_port(port); - status = cli_cm_open(talloc_tos(), NULL, + status = cli_cm_open(mem_ctx, NULL, desthost, service, creds,