projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Plug a few minor memory leaks, based on a patch by Sirp Potijk.
[u/mdw/putty]
/
ssh.c
diff --git
a/ssh.c
b/ssh.c
index
23afa6a
..
068db3c
100644
(file)
--- a/
ssh.c
+++ b/
ssh.c
@@
-2853,6
+2853,8
@@
static int ssh_do_close(Ssh ssh, int notify_exit)
del234(ssh->portfwds, pf); /* moving next one to index 0 */
free_portfwd(pf);
}
+ freetree234(ssh->portfwds);
+ ssh->portfwds = NULL;
}
return ret;