1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-28 01:41:48 +03:00

examples: Missing close for 'socket_fd' when error

Defect found by covscan

Signed-off-by: Norbert Pocs <npocs@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Norbert Pocs
2021-11-04 10:50:53 +01:00
committed by Jakub Jelen
parent 21b6418fd9
commit 99c6eb305e

View File

@ -526,6 +526,7 @@ message_callback(UNUSED_PARAM(ssh_session session),
SAFE_FREE(pFd);
SAFE_FREE(cb_chan);
SAFE_FREE(event_fd_data);
close(socket_fd);
return 1;
}