X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=sftp.c;h=66e96b44c3e3a01c76ab64a607f5281c54e9ae67;hb=6ef62aacfc5108355532ce82dc8eae7b7dc70e39;hp=4d5172b58da21489ef2e00434faadda8d6b05ba7;hpb=77cc3018626450f06de853d94e12f4cd800241dc;p=PuTTY.git 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;