code was untested and wrong.

--HG--
extra : convert_revision : bd8c4eb7071bb69f5cf17715072ae625a5267324
This commit is contained in:
Matt Johnston 2006-03-08 15:46:24 +00:00
parent ae15e644b1
commit 9368e4db33

18
scp.c
View File

@ -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__ */