summaryrefslogtreecommitdiff
path: root/pcl
diff options
context:
space:
mode:
authorJulian Smith <julian.smith@artifex.com>2022-01-18 18:21:47 +0000
committerJulian Smith <julian.smith@artifex.com>2022-01-25 17:50:06 +0000
commitbe001b95d2f3ad4cc297c9bf86b10c1842f6fa25 (patch)
tree2ac45536a01351f39beb50cb8cd41ba04c12173d /pcl
parent9f0274bfda6937d1d2843fd150d8c0c9eb5eb921 (diff)
downloadghostpdl-be001b95d2f3ad4cc297c9bf86b10c1842f6fa25.tar.gz
pcl/pcl/pctop.c: fixed leak of two patterns dictionaries.
In pcl_impl_deallocate_interp_instance(), call pl_dict_release() with &pcli->pcs.gl_patterns and &pcs.pcl_patterns. Fixes Memento leak in: ./ghostpdl/mem-extract-bin/gpcl6 -dNOPAUSE -dBATCH -sDEVICE=ppmraw -dMaxBitmap=1000 -r300 -o gpcl6.out tests_private/customer_tests/bug690756.pcl
Diffstat (limited to 'pcl')
-rw-r--r--pcl/pcl/pctop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pcl/pcl/pctop.c b/pcl/pcl/pctop.c
index f953e1f47..9dadf52b9 100644
--- a/pcl/pcl/pctop.c
+++ b/pcl/pcl/pctop.c
@@ -583,6 +583,9 @@ pcl_impl_deallocate_interp_instance(pl_interp_implementation_t * impl /* ins
pl_dict_release(&pcli->pcs.soft_fonts);
pl_dict_release(&pcli->pcs.built_in_fonts);
+ pl_dict_release(&pcli->pcs.gl_patterns);
+ pl_dict_release(&pcli->pcs.pcl_patterns);
+
gs_font_dir_free(pcli->pcs.font_dir);
gx_path_free(&pcli->pcs.g.polygon.buffer.path, "pcl_deallocate_interp_instance");