1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

Fix major memory leak in sftp_cmd_ls (thanks to Hans-Juergen Petrich

for pointing it out).

[originally from svn r1612]
This commit is contained in:
Simon Tatham
2002-03-31 16:26:13 +00:00
parent 01ca464ad2
commit ae2599845c
3 changed files with 41 additions and 8 deletions

6
sftp.h
View File

@ -174,3 +174,9 @@ struct fxp_names *fxp_readdir(struct fxp_handle *handle);
* Free up an fxp_names structure.
*/
void fxp_free_names(struct fxp_names *names);
/*
* Duplicate and free fxp_name structures.
*/
struct fxp_name *fxp_dup_name(struct fxp_name *name);
void fxp_free_name(struct fxp_name *name);