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:
committed by
Jakub Jelen
parent
21b6418fd9
commit
99c6eb305e
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user