mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-01 16:33:02 +01:00
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:
parent
c454922ffa
commit
cff63da930
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user