common: Annotate semi-static allocation.
authorJustus Winter <justus@g10code.com>
Fri, 1 Jul 2016 12:09:58 +0000 (14:09 +0200)
committerJustus Winter <justus@g10code.com>
Fri, 1 Jul 2016 12:16:18 +0000 (14:16 +0200)
* common/argparse.c (optfile_parse): Allow string arguments to leak.

Signed-off-by: Justus Winter <justus@g10code.com>
common/argparse.c

index 00cde23..240fdce 100644 (file)
@@ -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;