mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
tests: Close channel before freeying
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit c043122655)
This commit is contained in:
@@ -424,6 +424,7 @@ static void torture_server_no_more_sessions(void **state)
|
||||
assert_int_equal(rc, SSH_ERROR);
|
||||
|
||||
/* Free the unused channel */
|
||||
ssh_channel_close(channels[1]);
|
||||
ssh_channel_free(channels[1]);
|
||||
|
||||
/* Close and free open channel */
|
||||
|
||||
Reference in New Issue
Block a user