Changes in uspace/app/bdsh/input.c [b9ae539:b2727f18] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/input.c
rb9ae539 rb2727f18 68 68 { 69 69 char *cmd[WORD_MAX]; 70 token_t *tokens = calloc(WORD_MAX, sizeof(token_t)); 71 if (tokens == NULL) 72 return ENOMEM; 70 token_t tokens_space[WORD_MAX]; 71 token_t *tokens = tokens_space; 73 72 int rc = 0; 74 73 tokenizer_t tok; … … 78 77 char *redir_to = NULL; 79 78 80 if (NULL == usr->line) { 81 free(tokens); 79 if (NULL == usr->line) 82 80 return CL_EFAIL; 83 }84 81 85 82 rc = tok_init(&tok, usr->line, tokens, WORD_MAX); … … 212 209 } 213 210 tok_fini(&tok); 214 free(tokens);215 211 216 212 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.