[Pkg-gnupg-commit] [gnupg2] 95/160: common: Annotate semi-static allocation.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Fri Jul 15 09:36:40 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch upstream
in repository gnupg2.
commit 49fdd0887c84ed7f7b858b9e7ffa146fcb7f1e87
Author: Justus Winter <justus at g10code.com>
Date: Fri Jul 1 14:09:58 2016 +0200
common: Annotate semi-static allocation.
* common/argparse.c (optfile_parse): Allow string arguments to leak.
Signed-off-by: Justus Winter <justus at g10code.com>
---
common/argparse.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/common/argparse.c b/common/argparse.c
index 00cde23..240fdce 100644
--- a/common/argparse.c
+++ b/common/argparse.c
@@ -699,6 +699,8 @@ optfile_parse (FILE *fp, const char *filename, unsigned *lineno,
}
if (!set_opt_arg (arg, opts[idx].flags, p))
xfree (buffer);
+ else
+ gpgrt_annotate_leaked_object (buffer);
}
}
break;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list