Skip to content

Commit 2777330

Browse files
committed
ppd-cache.c: fix memory leak in _cupsConvertOptions()
1 parent 0747fd6 commit 2777330

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Changes in CUPS v2.4.13 (YYYY-MM-DD)
2424
- Fixed support for the server name in the ErrorLog filename (Issue #1277)
2525
- Fixed job cleanup after daemon restart (Issue #1315)
2626
- Fixed handling of buggy DYMO USB printer serial numbers (Issue #1338)
27+
- Fixed unreachable block in IPP backend (Issue #1351)
28+
- Fixed memory leak in _cupsConvertOptions (Issue #1354)
2729

2830

2931
Changes in CUPS v2.4.12 (2025-04-08)

cups/ppd-cache.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ _cupsConvertOptions(
229229
"y-dimension", size->length);
230230

231231
ippAddCollection(media_col, IPP_TAG_ZERO, "media-size", media_size);
232+
ippDelete(media_size);
232233
}
233234

234235
for (i = 0; i < media_col_sup->num_values; i ++)
@@ -248,6 +249,7 @@ _cupsConvertOptions(
248249
}
249250

250251
ippAddCollection(request, IPP_TAG_JOB, "media-col", media_col);
252+
ippDelete(media_col);
251253
}
252254

253255
if ((keyword = cupsGetOption("output-bin", num_options, options)) == NULL)

0 commit comments

Comments
 (0)