The branch, v4-24-test has been updated
       via  241748870f7 s3/printing: Fix leaking parsed options
       via  ef9bde01a05 s3/printing: Fix leaked mem ctx returned from talloc_new
       via  03fe9902cea s3:rpc_client: Fix memory leak opening local named pipe
      from  df0fd8da0a4 docs-xml:smb.conf: Fix "ctdbd socket" documentation

https://git.samba.org/?p=samba.git;a=shortlog;h=v4-24-test


- Log -----------------------------------------------------------------
commit 241748870f783d6c1b31389bd422ed73c0be19a4
Author: Noel Power <[email protected]>
Date:   Thu Jan 29 15:12:52 2026 +0000

    s3/printing: Fix leaking parsed options
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=15979
    Signed-off-by: Noel Power <[email protected]>
    Reviewed-by: Gary Lockyer <[email protected]>
    
    Autobuild-User(master): Noel Power <[email protected]>
    Autobuild-Date(master): Fri Jan 30 11:09:44 UTC 2026 on atb-devel-224
    
    (cherry picked from commit 22021dbfa7a94007a511d05f25e49ab73dacbcf5)
    
    Autobuild-User(v4-24-test): Björn Jacke <[email protected]>
    Autobuild-Date(v4-24-test): Wed Feb  4 16:18:26 UTC 2026 on atb-devel-224

commit ef9bde01a05b2d561cde72eb4202e87015dd22f0
Author: Noel Power <[email protected]>
Date:   Thu Jan 29 11:00:26 2026 +0000

    s3/printing: Fix leaked mem ctx returned from talloc_new
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=15979
    Signed-off-by: Noel Power <[email protected]>
    Reviewed-by: Gary Lockyer <[email protected]>
    (cherry picked from commit 5ba76344ef807577ea1fd4265d585285eb633971)

commit 03fe9902cea94a37865414579aa1e0eb4e74283f
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
    
    (cherry picked from commit 24dc455362fb49ef81c99d95880e106a234ce29a)

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

Summary of changes:
 source3/printing/print_cups.c | 3 +++
 source3/printing/printing.c   | 5 +++--
 source3/rpc_client/cli_pipe.c | 2 +-
 3 files changed, 7 insertions(+), 3 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/printing/print_cups.c b/source3/printing/print_cups.c
index d8ba9ccd011..f1449e1d1ea 100644
--- a/source3/printing/print_cups.c
+++ b/source3/printing/print_cups.c
@@ -1130,6 +1130,9 @@ static int cups_job_submit(int snum, struct printjob 
*pjob,
        if (http)
                httpClose(http);
 
+       if (num_options) {
+               cupsFreeOptions(num_options, options);
+       }
        TALLOC_FREE(frame);
 
        return ret;
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index bcfd893456b..3afc3733983 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -2900,7 +2900,7 @@ NTSTATUS print_job_end(struct messaging_context *msg_ctx, 
int snum,
                        pjob->filename, pjob->size ? "deleted" : "zero length" 
));
                unlink(pjob->filename);
                pjob_delete(global_event_context(), msg_ctx, sharename, jobid);
-               return NT_STATUS_OK;
+               goto out;
        }
 
        /* don't strip out characters like '$' from the printername */
@@ -2942,7 +2942,8 @@ NTSTATUS print_job_end(struct messaging_context *msg_ctx, 
int snum,
        /* make sure the database is up to date */
        if (print_cache_expired(lp_const_servicename(snum), True))
                print_queue_update(msg_ctx, snum, False);
-
+out:
+       talloc_free(tmp_ctx);
        return NT_STATUS_OK;
 
 fail:
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