diff options
author | Justus Winter <[email protected]> | 2016-07-01 12:09:58 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-07-01 12:16:18 +0000 |
commit | 49fdd0887c84ed7f7b858b9e7ffa146fcb7f1e87 (patch) | |
tree | 1da4a158a41f3c0a6bbdf2193655936d67b7c028 /common/argparse.c | |
parent | g10: Fix memory leak. (diff) | |
download | gnupg-49fdd0887c84ed7f7b858b9e7ffa146fcb7f1e87.tar.gz gnupg-49fdd0887c84ed7f7b858b9e7ffa146fcb7f1e87.zip |
common: Annotate semi-static allocation.
* common/argparse.c (optfile_parse): Allow string arguments to leak.
Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
-rw-r--r-- | common/argparse.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |