diff options
Diffstat (limited to 'core/src/fpdfapi')
-rw-r--r-- | core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp index 402a19ed4a..2d6e9f3436 100644 --- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp +++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_decode.cpp @@ -416,6 +416,7 @@ FX_BOOL PDF_DataDecode(const uint8_t* src_buf, FX_Free(last_buf); } if (offset == -1) { + FX_Free(new_buf); return FALSE; } last_buf = new_buf; |