]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
ppd-cache.c: fix memory leak in _cupsConvertOptions()
authorZdenek Dohnal <zdohnal@redhat.com>
Wed, 3 Sep 2025 06:22:31 +0000 (08:22 +0200)
committerZdenek Dohnal <zdohnal@redhat.com>
Wed, 3 Sep 2025 06:22:31 +0000 (08:22 +0200)
CHANGES.md
cups/ppd-cache.c

index be0cadddf51c2f49ae9096de281edff234e5092c..5890a626dcabb22d2ae4442538f8dc6acee16bd7 100644 (file)
@@ -24,6 +24,8 @@ Changes in CUPS v2.4.13 (YYYY-MM-DD)
 - Fixed support for the server name in the ErrorLog filename (Issue #1277)
 - Fixed job cleanup after daemon restart (Issue #1315)
 - Fixed handling of buggy DYMO USB printer serial numbers (Issue #1338)
+- Fixed unreachable block in IPP backend (Issue #1351)
+- Fixed memory leak in _cupsConvertOptions (Issue #1354)
 
 
 Changes in CUPS v2.4.12 (2025-04-08)
index 4073ba1468f38b33a2bb17276cefee5249ef85b1..f5386532ca0b0dd6baa277099bff13f06f6910fa 100644 (file)
@@ -229,6 +229,7 @@ _cupsConvertOptions(
                     "y-dimension", size->length);
 
       ippAddCollection(media_col, IPP_TAG_ZERO, "media-size", media_size);
+      ippDelete(media_size);
     }
 
     for (i = 0; i < media_col_sup->num_values; i ++)
@@ -248,6 +249,7 @@ _cupsConvertOptions(
     }
 
     ippAddCollection(request, IPP_TAG_JOB, "media-col", media_col);
+    ippDelete(media_col);
   }
 
   if ((keyword = cupsGetOption("output-bin", num_options, options)) == NULL)