Skip to content

Commit 2417488

Browse files
noelpowerBjoern Jacke
authored andcommitted
s3/printing: Fix leaking parsed options
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 (cherry picked from commit 22021db) Autobuild-User(v4-24-test): Björn Jacke <bjacke@samba.org> Autobuild-Date(v4-24-test): Wed Feb 4 16:18:26 UTC 2026 on atb-devel-224
1 parent ef9bde0 commit 2417488

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source3/printing/print_cups.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,9 @@ static int cups_job_submit(int snum, struct printjob *pjob,
11301130
if (http)
11311131
httpClose(http);
11321132

1133+
if (num_options) {
1134+
cupsFreeOptions(num_options, options);
1135+
}
11331136
TALLOC_FREE(frame);
11341137

11351138
return ret;

0 commit comments

Comments
 (0)