[poppler] utils/pdfsig.cc
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri May 10 20:57:07 UTC 2019
utils/pdfsig.cc | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
New commits:
commit d06b96171260e8f3fd7c12c028f763c0f110a803
Author: Albert Astals Cid <aacid at kde.org>
Date: Fri May 10 22:51:43 2019 +0200
pdfsig: Fix small memory leak
When document is not fully signed
diff --git a/utils/pdfsig.cc b/utils/pdfsig.cc
index 65514723..ab545add 100644
--- a/utils/pdfsig.cc
+++ b/utils/pdfsig.cc
@@ -257,13 +257,12 @@ int main(int argc, char *argv[])
ranges[0], ranges[1], ranges[2], ranges[3]);
Goffset checked_file_size;
GooString* signature = sig_widgets.at(i)->getCheckedSignature(&checked_file_size);
- if (signature && checked_file_size == ranges[3])
- {
+ if (signature && checked_file_size == ranges[3]) {
printf(" - Total document signed\n");
- delete signature;
- }
- else
+ } else {
printf(" - Not total document signed\n");
+ }
+ delete signature;
}
printf(" - Signature Validation: %s\n", getReadableSigState(sig_info->getSignatureValStatus()));
gfree(time_str);
More information about the poppler
mailing list