X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/df0870fc8ceb5a8fea66a4d0fe00e7db12317e33..ae0500e538e2fb821ef1ad8529aed7999acf7a19:/sftp.c diff --git a/sftp.c b/sftp.c index 4d5172b5..66e96b44 100644 --- a/sftp.c +++ b/sftp.c @@ -334,6 +334,14 @@ static struct sftp_request *sftp_alloc_request(void) return r; } +void sftp_cleanup_request(void) +{ + if (sftp_requests == NULL) { + freetree234(sftp_requests); + sftp_requests = NULL; + } +} + void sftp_register(struct sftp_request *req) { req->registered = 1;