ash: small code shrink

This commit is contained in:
Denis Vlasenko 2008-07-13 20:39:23 +00:00
parent ad6d6ffcdc
commit 3177ba0852

View File

@ -1656,12 +1656,12 @@ struct shparam {
static void static void
freeparam(volatile struct shparam *param) freeparam(volatile struct shparam *param)
{ {
char **ap;
if (param->malloced) { if (param->malloced) {
for (ap = param->p; *ap; ap++) char **ap, **ap1;
free(*ap); ap = ap1 = param->p;
free(param->p); while (*ap)
free(*ap++);
free(ap1);
} }
} }