]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/printing: Fix leaking parsed options master
authorNoel Power <noel.power@suse.com>
Thu, 29 Jan 2026 15:12:52 +0000 (15:12 +0000)
committerNoel Power <npower@samba.org>
Fri, 30 Jan 2026 11:09:44 +0000 (11:09 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15979
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Fri Jan 30 11:09:44 UTC 2026 on atb-devel-224

source3/printing/print_cups.c

index d8ba9ccd011ca82413f442f9b3118ea7442ffe79..f1449e1d1eae3bf0be5f62a53e4bbb9a5e8df0ad 100644 (file)
@@ -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;