summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2018-10-02 12:30:11 +0800
committerTor Andersson <tor.andersson@artifex.com>2018-10-23 18:46:01 +0200
commit127f294690a06b757de8ac760a69847b88356b3b (patch)
treee484cb4d573ca07738168650c873137f4132cf0b /source
parentfd87e402bb17998c623ccb4b39a3812816034d0e (diff)
downloadmupdf-127f294690a06b757de8ac760a69847b88356b3b.tar.xz
Drop coords upon exception cloning path.
Diffstat (limited to 'source')
-rw-r--r--source/fitz/path.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/fitz/path.c b/source/fitz/path.c
index 56510329..5bb669e1 100644
--- a/source/fitz/path.c
+++ b/source/fitz/path.c
@@ -1544,6 +1544,7 @@ fz_clone_path(fz_context *ctx, fz_path *path)
}
fz_catch(ctx)
{
+ fz_free(ctx, new_path->coords);
fz_free(ctx, new_path->cmds);
fz_free(ctx, new_path);
fz_rethrow(ctx);