From 49fdd0887c84ed7f7b858b9e7ffa146fcb7f1e87 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Fri, 1 Jul 2016 14:09:58 +0200 Subject: [PATCH] common: Annotate semi-static allocation. * common/argparse.c (optfile_parse): Allow string arguments to leak. Signed-off-by: Justus Winter --- common/argparse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/argparse.c b/common/argparse.c index 00cde23da..240fdce30 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;