diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-07-03 19:27:21 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-07-03 19:28:20 +0100 |
commit | fda8f51d6e58a46971f12be7649dce8c4e2a14a6 (patch) | |
tree | 8a466980a9a2883d7f766d07385c637a74ad84af /source | |
parent | da3d22e4096f85d27dde527050f166261ae4bb14 (diff) | |
download | mupdf-fda8f51d6e58a46971f12be7649dce8c4e2a14a6.tar.xz |
Avoid leaking an fz_stream for every unknown crypt handler.
Diffstat (limited to 'source')
-rw-r--r-- | source/pdf/pdf-crypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-crypt.c b/source/pdf/pdf-crypt.c index 9baefae5..e7f5f7a9 100644 --- a/source/pdf/pdf-crypt.c +++ b/source/pdf/pdf-crypt.c @@ -1011,7 +1011,7 @@ pdf_open_crypt_imp(fz_context *ctx, fz_stream *chain, pdf_crypt *crypt, pdf_cryp if (stmf->method == PDF_CRYPT_AESV2 || stmf->method == PDF_CRYPT_AESV3) return fz_open_aesd(ctx, chain, key, len); - return fz_open_copy(ctx, chain); + return chain; } fz_stream * |