summaryrefslogtreecommitdiff
path: root/source/tools
diff options
context:
space:
mode:
authorSimon Bünzli <zeniko@gmail.com>2014-10-28 14:51:34 +0100
committerSimon Bünzli <zeniko@gmail.com>2014-10-28 15:45:03 +0100
commitb1542d7c2f33a4412606c013a5ba6ce0ad31c034 (patch)
tree9078fec12f117b289949f902bb03e4fd36b06be7 /source/tools
parent362d23df9f6151446419757d48a53ff33b67cf2f (diff)
downloadmupdf-b1542d7c2f33a4412606c013a5ba6ce0ad31c034.tar.xz
fix memory leaks in load_sample_func and pdf_load_compressed_inline_image
In load_sample_func, the stream is not closed and thus leaked if one of the fz_read_byte or fz_read_bits calls throws (which might happen e.g. on a Deflate data error). In pdf_load_compressed_inline_image, the allocated buffer is not freed if one of the stream initializers or the tile creation throws (fz_open_leecher does not take ownership of the stream).
Diffstat (limited to 'source/tools')
0 files changed, 0 insertions, 0 deletions