Changes in / [b48d046:f90eb75] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/compl.c

    rb48d046 rf90eb75  
    9898        int retval;
    9999        tokenizer_t tok;
    100         token_t tokens[WORD_MAX];
     100        token_t *tokens = calloc(WORD_MAX, sizeof(token_t));
     101        if (tokens == NULL) {
     102                retval = ENOMEM;
     103                goto error;
     104        }
    101105        int current_token;
    102106        size_t tokens_length;
     
    254258        if (cs != NULL)
    255259                free(cs);
     260        if (tokens != NULL)
     261                free(tokens);
    256262
    257263        return retval;
Note: See TracChangeset for help on using the changeset viewer.