http://git.etherboot.org
/
people
/
mcb30
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix "if (p) free(p)" constructs
[people/mcb30/busybox.git]
/
shell
/
lash.c
diff --git
a/shell/lash.c
b/shell/lash.c
index
4ce6d42
..
5ba490f
100644
(file)
--- a/
shell/lash.c
+++ b/
shell/lash.c
@@
-455,8
+455,7
@@
static void free_job(struct job *cmd)
for (i = 0; i < cmd->num_progs; i++) {
free(cmd->progs[i].argv);
#if ENABLE_LASH_PIPE_N_REDIRECTS
- if (cmd->progs[i].redirects)
- free(cmd->progs[i].redirects);
+ free(cmd->progs[i].redirects);
#endif
}
free(cmd->progs);