From 8dee8f716887aee52e2fba19a7ae0e2a443cb6df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20B=C3=BCnzli?= Date: Thu, 2 Jan 2014 09:41:49 +0100 Subject: fix memory leak in pdf_repair_xref The 0 null object is leaked if a document refers to 0 0 obj before requiring a delayed reparation (seen e.g. with 3324.pdf.asan.3.2585). --- source/pdf/pdf-repair.c | 1 - 1 file changed, 1 deletion(-) (limited to 'source/pdf') diff --git a/source/pdf/pdf-repair.c b/source/pdf/pdf-repair.c index 0e1f0bdf..bf0e2d83 100644 --- a/source/pdf/pdf-repair.c +++ b/source/pdf/pdf-repair.c @@ -473,7 +473,6 @@ pdf_repair_xref(pdf_document *doc, pdf_lexbuf *buf) entry->ofs = 0; entry->gen = 65535; entry->stm_ofs = 0; - entry->obj = NULL; next = 0; for (i = pdf_xref_len(doc) - 1; i >= 0; i--) -- cgit v1.2.3