diff options
author | Darren Tucker <dtucker@zip.com.au> | 2013-06-06 08:22:46 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2013-06-06 08:22:46 +1000 |
commit | 408eaf3ab716096f8faf30f091bd54a2c7a17a09 (patch) | |
tree | ccc73e58720d6f62dd88ddb205a63f3afeb8c1e5 /readconf.c | |
parent | e52a260f16888ca75390f97de4606943e61785e8 (diff) |
- 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
Diffstat (limited to 'readconf.c')
-rw-r--r-- | readconf.c | 4 |
1 files changed, 3 insertions, 1 deletions
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: |