diff options
author | Albert Astals Cid <aacid@kde.org> | 2019-07-17 00:41:52 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2019-07-17 00:41:52 +0200 |
commit | a57e2d47049a7f0067381dfa0c490caf946b93e0 (patch) | |
tree | 9419cf4ef4719f8befd6d71494dd372cd60afd47 | |
parent | 1f244751732f4036e23476cd169f1e1e564b4cd5 (diff) |
Link: Fix memory leak on invalid files
-rw-r--r-- | poppler/Link.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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; } } |