projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad6d6ff
)
ash: small code shrink
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 13 Jul 2008 20:39:23 +0000
(20:39 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 13 Jul 2008 20:39:23 +0000
(20:39 -0000)
shell/ash.c
patch
|
blob
|
history
diff --git
a/shell/ash.c
b/shell/ash.c
index 08bdfc3b3fd7e62b8f7919d509bcf713a9d89b06..7a63fcec77b222dc967f735e1a12160e34baab23 100644
(file)
--- a/
shell/ash.c
+++ b/
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);
}
}