From df03eafe10b46de5d49dd4cc1b8d9900d836fcf6 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Tue, 20 Nov 2018 20:46:58 +0800 Subject: free r_buf --- source/pdf/pdf-crypt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/pdf/pdf-crypt.c b/source/pdf/pdf-crypt.c index 88b69834..566a80d5 100644 --- a/source/pdf/pdf-crypt.c +++ b/source/pdf/pdf-crypt.c @@ -494,6 +494,7 @@ pdf_new_crypt(fz_context *ctx, pdf_obj *dict, pdf_obj *id) fz_sha256_update(&final_hash, crypt->key, 32); fz_sha256_final(&final_hash, crypt->key); } + fz_free(ctx, r_buf); return crypt; } return crypt; -- cgit v1.2.3