[readconf.c]
     plug another memleak.  bz#1967, from Zhenbo Xu, detected by Melton, ok djm
This commit is contained in:
Darren Tucker 2013-06-06 08:22:46 +10:00
parent e52a260f16
commit 408eaf3ab7
2 changed files with 6 additions and 1 deletions

View File

@ -43,6 +43,9 @@
- dtucker@cvs.openbsd.org 2013/06/05 12:52:38
[sshconnect2.c]
Fix memory leaks found by Zhenbo Xu and the Melton tool. bz#1967, ok djm
- dtucker@cvs.openbsd.org 2013/06/05 22:00:28
[readconf.c]
plug another memleak. bz#1967, from Zhenbo Xu, detected by Melton, ok djm
20130602
- (tim) [Makefile.in] Make Solaris, UnixWare, & OpenServer linkers happy

View File

@ -1,4 +1,4 @@
/* $OpenBSD: readconf.c,v 1.202 2013/05/17 00:13:14 djm Exp $ */
/* $OpenBSD: readconf.c,v 1.203 2013/06/05 22:00:28 dtucker Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@ -820,6 +820,8 @@ parse_int:
else if (opcode == oRemoteForward)
add_remote_forward(options, &fwd);
}
free(fwd.connect_host);
free(fwd.listen_host);
break;
case oClearAllForwardings: