← Commit list

3177ba085

Denis Vlasenko
Denis Vlasenko
2008-07-13
FAILED Duration: 17s

Subject

ash: small code shrink

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/ash.c+5 -5
@@ -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);
}
}