Commit 9368e4db authored by Matt Johnston's avatar Matt Johnston
Browse files

code was untested and wrong.

--HG--
extra : convert_revision : bd8c4eb7071bb69f5cf17715072ae625a5267324
parent ae15e644
......@@ -234,18 +234,18 @@ do_cmd(char *host, char *remuser, char *cmd, int *fdin, int *fdout, int argc)
#ifdef __uClinux__
/* clean up command */
/* pop cmd */
xfree(args->list[args->num-1]);
args->list[args->num-1]=NULL;
args->num--;
xfree(args.list[args.num-1]);
args.list[args.num-1]=NULL;
args.num--;
/* pop host */
xfree(args->list[args->num-1]);
args->list[args->num-1]=NULL;
args->num--;
xfree(args.list[args.num-1]);
args.list[args.num-1]=NULL;
args.num--;
/* pop user */
if (remuser != NULL) {
xfree(args->list[args->num-1]);
args->list[args->num-1]=NULL;
args->num--;
xfree(args.list[args.num-1]);
args.list[args.num-1]=NULL;
args.num--;
}
#endif /* __uClinux__ */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment