tools/gpgtar: Annotate semi-static allocation.

* tools/gpgtar.c (shell_parse_argv): Annotate argument vector as
leaked.

Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2016-07-01 13:44:32 +02:00
parent c454922ffa
commit cff63da930
1 changed files with 6 additions and 1 deletions

View File

@ -275,7 +275,12 @@ shell_parse_argv (const char *s, int *r_argc, char ***r_argv)
return 1;
for (i = 0; list; i++)
(*r_argv)[i] = list->d, list = list->next;
{
gpgrt_annotate_leaked_object (list);
(*r_argv)[i] = list->d;
list = list->next;
}
gpgrt_annotate_leaked_object (*r_argv);
return 0;
}