aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-07-01 12:09:58 +0000
committerJustus Winter <[email protected]>2016-07-01 12:16:18 +0000
commit49fdd0887c84ed7f7b858b9e7ffa146fcb7f1e87 (patch)
tree1da4a158a41f3c0a6bbdf2193655936d67b7c028
parentg10: Fix memory leak. (diff)
downloadgnupg-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.c2
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;