projects
/
mupdf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
983e8ab
)
Fix buffer leakage in reflow_load_page.
author
Robin Watts
<
[email protected]
>
Wed, 7 Jul 2021 09:53:16 +0000
(10:53 +0100)
committer
Robin Watts
<
[email protected]
>
Wed, 7 Jul 2021 14:58:23 +0000
(15:58 +0100)
source/reflow/reflow-doc.c
patch
|
blob
|
blame
|
history
diff --git
a/source/reflow/reflow-doc.c
b/source/reflow/reflow-doc.c
index 01dc3ff910ee101c836ce92731bf1ae64cf9e5bc..06eb464cedfee22df461a987d096348c66974171 100644
(file)
--- a/
source/reflow/reflow-doc.c
+++ b/
source/reflow/reflow-doc.c
@@
-138,6
+138,7
@@
reflow_load_page(fz_context *ctx, reflow_document *doc, int chapter, int pagenum
fz_var(buf);
fz_var(out);
fz_var(text);
+ fz_var(stm);
fz_try(ctx)
{
@@
-164,6
+165,7
@@
reflow_load_page(fz_context *ctx, reflow_document *doc, int chapter, int pagenum
fz_drop_stext_page(ctx, text);
fz_drop_output(ctx, out);
fz_drop_stream(ctx, stm);
+ fz_drop_buffer(ctx, buf);
}
fz_catch(ctx)
{