mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-03-24 20:40:09 +09:00
tests: Do not leave temporary SFTP directory
The temporary directory created in torture_sftp_session() wouldn't be removed. This removes such directory in torture_sftp_close(). Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
@@ -475,6 +475,10 @@ void torture_sftp_close(struct torture_sftp *t) {
|
||||
sftp_free(t->sftp);
|
||||
}
|
||||
|
||||
if (t->testdir) {
|
||||
torture_rmdirs(t->testdir);
|
||||
}
|
||||
|
||||
free(t->testdir);
|
||||
free(t);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user