summaryrefslogtreecommitdiff
path: root/pcl
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2022-01-26 19:04:16 +0000
committerRobin Watts <Robin.Watts@artifex.com>2022-01-26 19:06:24 +0000
commit60e94bfd558735b65bcf9e9c800221ea6bb4f093 (patch)
tree7b063f70a16a92641a1c9ec282f38ecaeeea4872 /pcl
parent76aa4441e8d973d8abf01c7c8fe008ca69777ee7 (diff)
downloadghostpdl-60e94bfd558735b65bcf9e9c800221ea6bb4f093.tar.gz
Fix PCL memory leak of palette lookup table.
Seen with: gpcl6 -dNOPAUSE -dBATCH -sDEVICE=ppmraw -dMaxBitmap=1000 -r300 -o gpcl6.out ../tests_private/pcl/pcl5cfts/fts.2410
Diffstat (limited to 'pcl')
-rw-r--r--pcl/pcl/pccsbase.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pcl/pcl/pccsbase.c b/pcl/pcl/pccsbase.c
index a8e6ad51f..6e50b4f44 100644
--- a/pcl/pcl/pccsbase.c
+++ b/pcl/pcl/pccsbase.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2021 Artifex Software, Inc.
+/* Copyright (C) 2001-2022 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -896,6 +896,8 @@ free_base_cspace(gs_memory_t * pmem, void *pvbase, client_name_t cname)
pcl_cs_base_t *pbase = (pcl_cs_base_t *) pvbase;
rc_decrement(pbase->pcspace, "free_base_cspace");
+ rc_decrement(pbase->client_data.plktbl1, "free_base_cspace");
+ rc_decrement(pbase->client_data.plktbl2, "free_base_cspace");
gs_free_object(pmem, pvbase, cname);
}