mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
ash: small code shrink
This commit is contained in:
parent
ad6d6ffcdc
commit
3177ba0852
10
shell/ash.c
10
shell/ash.c
@ -1656,12 +1656,12 @@ struct shparam {
|
||||
static void
|
||||
freeparam(volatile struct shparam *param)
|
||||
{
|
||||
char **ap;
|
||||
|
||||
if (param->malloced) {
|
||||
for (ap = param->p; *ap; ap++)
|
||||
free(*ap);
|
||||
free(param->p);
|
||||
char **ap, **ap1;
|
||||
ap = ap1 = param->p;
|
||||
while (*ap)
|
||||
free(*ap++);
|
||||
free(ap1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user