diff --git a/src/token.c b/src/token.c index 2e26c562..58befe1d 100644 --- a/src/token.c +++ b/src/token.c @@ -454,7 +454,7 @@ char *ssh_remove_all_matching(const char *list, ret = calloc(1, strlen(list) + 1); if (ret == NULL) { - return NULL; + goto out; } for (i = 0; l_tok->tokens[i]; i++) {