Commit Diff


commit - 53d6518a0026320c70a6ffb8ddd91512d0cde20e
commit + 7d36d3a94d71dec034a00e45e226794a81744cfe
blob - fa706eca964446108ad707d3d9e846147f56e4e8
blob + 10b3c82cdfa712fc482aa83d8223251b5cd07866
--- pdf.c
+++ pdf.c
@@ -4977,6 +4977,7 @@ parse_xrefs(const uint8_t *input, size_t sz, size_t *n
 		goto end;
 	}
 	offset = H_INDEX_UINT(res->ast, 0);
+	h_parse_result_free(res);
 	if (offset > sz) {
 		log_message(5, "%s: startxref value at %zu (%#zx) points "
 		    "outside the file\n", infile, sz - i, sz - i);