poppler/Form.cc |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit fea27db14358c8342c9f5bdbe6cb3bff02cebc2b
Author: Albert Astals Cid <[email protected]>
Date:   Sun Nov 12 19:54:52 2017 +0100

    Fix leak if parseDA fails

diff --git a/poppler/Form.cc b/poppler/Form.cc
index 62bba103..3c23dd3f 100644
--- a/poppler/Form.cc
+++ b/poppler/Form.cc
@@ -1219,6 +1219,7 @@ void FormFieldText::setTextFontSize(int fontSize)
     int idx = parseDA(daToks);
     if (idx == -1) {
       error(errSyntaxError, -1, "FormFieldText:: invalid DA object\n");
+      deleteGooList(daToks, GooString);
       return;
     }
     if (defaultAppearance)
_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to