mirror of
https://github.com/reactos/ccache.git
synced 2025-01-24 04:14:31 +00:00
fixed a couple of minor memory leaks
This commit is contained in:
parent
93ef062cc5
commit
65042f0269
7
args.c
7
args.c
@ -41,6 +41,9 @@ void args_add(ARGS *args, const char *s)
|
||||
|
||||
void args_pop(ARGS *args, int n)
|
||||
{
|
||||
args->argc -= n;
|
||||
args->argv[args->argc] = NULL;
|
||||
while (n--) {
|
||||
args->argc--;
|
||||
free(args->argv[args->argc]);
|
||||
args->argv[args->argc] = NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user