diff options
author | Ray Johnston <ray.johnston@artifex.com> | 2018-01-09 07:19:35 -0800 |
---|---|---|
committer | Ray Johnston <ray.johnston@artifex.com> | 2018-01-09 07:21:33 -0800 |
commit | a8612bfd86f7753fceb738364b2808a4ad9d3bdf (patch) | |
tree | b59ec5a95eb25d3db587c3084a2ddd8cdebfec5f /base/gsalloc.c | |
parent | 9b38e9780bf5cbb9dbf41131efa80887826c59b4 (diff) | |
download | ghostpdl-a8612bfd86f7753fceb738364b2808a4ad9d3bdf.tar.gz |
Fix SEGV DEBUG build with -ZA (tests_private/comparefiles/Bug688308.ps)
Diffstat (limited to 'base/gsalloc.c')
-rw-r--r-- | base/gsalloc.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/base/gsalloc.c b/base/gsalloc.c index b6e51de96..31ee55e77 100644 --- a/base/gsalloc.c +++ b/base/gsalloc.c @@ -2522,8 +2522,10 @@ alloc_close_clump(gs_ref_memory_t * mem) { #ifdef DEBUG if (gs_debug_c('A')) { - dmlprintf1((const gs_memory_t *)mem, "[a%d]", alloc_trace_space(mem)); - dmprintf_clump((const gs_memory_t *)mem, "closing clump", mem->cc); + if (mem->cc != NULL) { + dmlprintf1((const gs_memory_t *)mem, "[a%d]", alloc_trace_space(mem)); + dmprintf_clump((const gs_memory_t *)mem, "closing clump", mem->cc); + } } #endif } @@ -2534,8 +2536,10 @@ alloc_open_clump(gs_ref_memory_t * mem) { #ifdef DEBUG if (gs_debug_c('A')) { - dmlprintf1((const gs_memory_t *)mem, "[a%d]", alloc_trace_space(mem)); - dmprintf_clump((const gs_memory_t *)mem, "opening clump", mem->cc); + if (mem->cc != NULL) { + dmlprintf1((const gs_memory_t *)mem, "[a%d]", alloc_trace_space(mem)); + dmprintf_clump((const gs_memory_t *)mem, "opening clump", mem->cc); + } } #endif } |