1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

Plug a few minor memory leaks, based on a patch by Sirp Potijk.

While I'm here, add an assertion in sshrand.c to catch mistakes in reference
counting.

[originally from svn r8846]
This commit is contained in:
Jacob Nevins
2010-01-17 16:20:45 +00:00
parent 99455bfc33
commit 5ea11dfb3a
3 changed files with 22 additions and 3 deletions

2
ssh.c
View File

@ -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;