poppler/Annot.cc |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit eea6b4f9caa7555009d959de51acb81037b2a465
Author: Albert Astals Cid <aa...@kde.org>
Date:   Sat Jul 10 23:59:35 2021 +0200

    AnnotAppearanceBuilder::drawListBox: Fix memory leak on error condition
    
    oss-fuzz/35996

diff --git a/poppler/Annot.cc b/poppler/Annot.cc
index 9f19e22f..e1a05c84 100644
--- a/poppler/Annot.cc
+++ b/poppler/Annot.cc
@@ -4618,6 +4618,9 @@ bool AnnotAppearanceBuilder::drawListBox(const 
FormFieldChoice *fieldChoice, con
                     }
                     delete daToks;
                 }
+                if (fontToFree) {
+                    fontToFree->decRefCnt();
+                }
                 return false;
             }
             Annot::layoutText(fieldChoice->getChoice(i), &convertedText, &j, 
font, &w, 0.0, nullptr, false);
_______________________________________________
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to