diff options
author | Denis Vlasenko | 2007-09-28 22:07:23 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-09-28 22:07:23 +0000 |
commit | 6081868ee33c44f5a7227b77876d7e7a83c8aa9e (patch) | |
tree | 15efd13947c3a22f640168e535b694d318be9704 /shell/lash.c | |
parent | e918e155ed1d36522e0c096e43d275f1ebda0515 (diff) | |
download | busybox-6081868ee33c44f5a7227b77876d7e7a83c8aa9e.zip busybox-6081868ee33c44f5a7227b77876d7e7a83c8aa9e.tar.gz |
fix "if (p) free(p)" constructs
Diffstat (limited to 'shell/lash.c')
-rw-r--r-- | shell/lash.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/shell/lash.c b/shell/lash.c index 4ce6d42..5ba490f 100644 --- 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); |