Commit Diff
--- 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);