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:
committed by
Jakub Jelen
parent
df48ddd895
commit
9a3e218b6f
@@ -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++) {
|
||||
|
Reference in New Issue
Block a user