diff options
Diffstat (limited to 'base/gsfcmap.c')
-rw-r--r-- | base/gsfcmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/base/gsfcmap.c b/base/gsfcmap.c index 3c9317d5..246a0aa3 100644 --- a/base/gsfcmap.c +++ b/base/gsfcmap.c @@ -586,6 +586,7 @@ gs_cmap_ToUnicode_alloc(gs_memory_t *mem, int id, int num_codes, int key_size, i "gs_cmap_ToUnicode_alloc"); if (map == NULL) { gs_cmap_free(*ppcmap, mem); + *ppcmap = NULL; return_error(gs_error_VMerror); } memset(map, 0, (size_t)num_codes * (value_size + 2)); |