summaryrefslogtreecommitdiffstats
path: root/readconf.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2013-06-06 00:22:46 +0200
committerDarren Tucker <dtucker@zip.com.au>2013-06-06 00:22:46 +0200
commit408eaf3ab716096f8faf30f091bd54a2c7a17a09 (patch)
treeccc73e58720d6f62dd88ddb205a63f3afeb8c1e5 /readconf.c
parent - dtucker@cvs.openbsd.org 2013/06/05 12:52:38 (diff)
downloadopenssh-408eaf3ab716096f8faf30f091bd54a2c7a17a09.tar.xz
openssh-408eaf3ab716096f8faf30f091bd54a2c7a17a09.zip
- 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.c4
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 @@
-/* $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: