aboutsummaryrefslogtreecommitdiff
path: root/shell/lash.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-09-28 22:07:23 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-09-28 22:07:23 +0000
commit6081868ee33c44f5a7227b77876d7e7a83c8aa9e (patch)
tree15efd13947c3a22f640168e535b694d318be9704 /shell/lash.c
parente918e155ed1d36522e0c096e43d275f1ebda0515 (diff)
downloadbusybox-w32-6081868ee33c44f5a7227b77876d7e7a83c8aa9e.tar.gz
busybox-w32-6081868ee33c44f5a7227b77876d7e7a83c8aa9e.tar.bz2
busybox-w32-6081868ee33c44f5a7227b77876d7e7a83c8aa9e.zip
fix "if (p) free(p)" constructs
Diffstat (limited to '')
-rw-r--r--shell/lash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/lash.c b/shell/lash.c
index 4ce6d4235..5ba490f2a 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -455,8 +455,7 @@ static void free_job(struct job *cmd)
455 for (i = 0; i < cmd->num_progs; i++) { 455 for (i = 0; i < cmd->num_progs; i++) {
456 free(cmd->progs[i].argv); 456 free(cmd->progs[i].argv);
457#if ENABLE_LASH_PIPE_N_REDIRECTS 457#if ENABLE_LASH_PIPE_N_REDIRECTS
458 if (cmd->progs[i].redirects) 458 free(cmd->progs[i].redirects);
459 free(cmd->progs[i].redirects);
460#endif 459#endif
461 } 460 }
462 free(cmd->progs); 461 free(cmd->progs);