The branch, master has been updated
       via  24dc455362f s3:rpc_client: Fix memory leak opening local named pipe
      from  f11bce483a6 smbd: in contend_dirleases() don't bother checking when 
not enabled

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 24dc455362fb49ef81c99d95880e106a234ce29a
Author: Samuel Cabrero <[email protected]>
Date:   Mon Jan 26 13:36:02 2026 +0100

    s3:rpc_client: Fix memory leak opening local named pipe
    
    If no local server name was passed to rpc_pipe_open_local_np() then
    get_myname() was called with NULL talloc context instead of the
    current stackframe.
    
    This was causing an increase of memory usage on busy servers with 
long-living
    rpcd_* workers.
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=15979
    
    Signed-off-by: Samuel Cabrero <[email protected]>
    Reviewed-by: Noel Power <[email protected]>
    Reviewed-by: Volker Lendecke <[email protected]>
    
    Autobuild-User(master): Volker Lendecke <[email protected]>
    Autobuild-Date(master): Tue Jan 27 10:13:40 UTC 2026 on atb-devel-224

-----------------------------------------------------------------------

Summary of changes:
 source3/rpc_client/cli_pipe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c
index 660cda5ea91..002ead6d5f9 100644
--- a/source3/rpc_client/cli_pipe.c
+++ b/source3/rpc_client/cli_pipe.c
@@ -3624,7 +3624,7 @@ NTSTATUS rpc_pipe_open_local_np(
        }
 
        if (local_server_name == NULL) {
-               local_server_name = get_myname(result);
+               local_server_name = get_myname(frame);
        }
 
        if (local_server_addr != NULL) {


-- 
Samba Shared Repository

Reply via email to