diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-07-03 18:58:55 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-07-03 18:59:26 +0100 |
commit | 5b506261a266b1843302d7f0a74222671495feaa (patch) | |
tree | a9d598c9457023c792fb1503e100bff1bc0f81b7 | |
parent | ab22c33960d4524fdb9c8498872c799c7f75bb8b (diff) | |
download | mupdf-5b506261a266b1843302d7f0a74222671495feaa.tar.xz |
Don't leak cmap->tree if we abort cmap loading before sort.
-rw-r--r-- | source/pdf/pdf-cmap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/pdf/pdf-cmap.c b/source/pdf/pdf-cmap.c index e9a56dcd..ade72c44 100644 --- a/source/pdf/pdf-cmap.c +++ b/source/pdf/pdf-cmap.c @@ -20,6 +20,7 @@ pdf_drop_cmap_imp(fz_context *ctx, fz_storable *cmap_) fz_free(ctx, cmap->xranges); fz_free(ctx, cmap->mranges); fz_free(ctx, cmap->dict); + fz_free(ctx, cmap->tree); fz_free(ctx, cmap); } |