1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-10 06:23:01 +03:00

token: Fix possible resource leak

CID 1501160
CID 1501161

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Andreas Schneider
2022-11-28 13:33:15 +01:00
committed by Jakub Jelen
parent df48ddd895
commit 9a3e218b6f

View File

@@ -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++) {