diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | readconf.c | 4 |
2 files changed, 6 insertions, 1 deletions
@@ -43,6 +43,9 @@ | |||
43 | - dtucker@cvs.openbsd.org 2013/06/05 12:52:38 | 43 | - dtucker@cvs.openbsd.org 2013/06/05 12:52:38 |
44 | [sshconnect2.c] | 44 | [sshconnect2.c] |
45 | Fix memory leaks found by Zhenbo Xu and the Melton tool. bz#1967, ok djm | 45 | Fix memory leaks found by Zhenbo Xu and the Melton tool. bz#1967, ok djm |
46 | - dtucker@cvs.openbsd.org 2013/06/05 22:00:28 | ||
47 | [readconf.c] | ||
48 | plug another memleak. bz#1967, from Zhenbo Xu, detected by Melton, ok djm | ||
46 | 49 | ||
47 | 20130602 | 50 | 20130602 |
48 | - (tim) [Makefile.in] Make Solaris, UnixWare, & OpenServer linkers happy | 51 | - (tim) [Makefile.in] Make Solaris, UnixWare, & OpenServer linkers happy |
diff --git a/readconf.c b/readconf.c index 45cf910fe..7c1c795fe 100644 --- a/readconf.c +++ b/readconf.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: readconf.c,v 1.202 2013/05/17 00:13:14 djm Exp $ */ | 1 | /* $OpenBSD: readconf.c,v 1.203 2013/06/05 22:00:28 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -820,6 +820,8 @@ parse_int: | |||
820 | else if (opcode == oRemoteForward) | 820 | else if (opcode == oRemoteForward) |
821 | add_remote_forward(options, &fwd); | 821 | add_remote_forward(options, &fwd); |
822 | } | 822 | } |
823 | free(fwd.connect_host); | ||
824 | free(fwd.listen_host); | ||
823 | break; | 825 | break; |
824 | 826 | ||
825 | case oClearAllForwardings: | 827 | case oClearAllForwardings: |