[poppler] poppler/Link.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jul 16 22:52:00 UTC 2019


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

New commits:
commit a57e2d47049a7f0067381dfa0c490caf946b93e0
Author: Albert Astals Cid <aacid at kde.org>
Date:   Wed Jul 17 00:41:52 2019 +0200

    Link: Fix memory leak on invalid files

diff --git a/poppler/Link.cc b/poppler/Link.cc
index bbba89c9..cfa91d14 100644
--- a/poppler/Link.cc
+++ b/poppler/Link.cc
@@ -197,6 +197,7 @@ LinkAction *LinkAction::parseAction(const Object *obj, const GooString *baseURI,
           const Ref ref = obj3Ref.getRef();
           if (!seenNextActions->insert(ref.num).second) {
               error(errSyntaxWarning, -1, "parseAction: Circular next actions detected in array.");
+              delete actionList;
               return action;
           }
       }


More information about the poppler mailing list