summaryrefslogtreecommitdiff
path: root/usr.bin/ssh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2013-06-05 22:00:29 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2013-06-05 22:00:29 +0000
commit9a1902270c697aeda19fd94d04f249f25fc87658 (patch)
tree815ef6e89a1005c5f5a985fa196bd0900f75fff3 /usr.bin/ssh
parent834daad3b8b23365353dfe45e074092721c25a7f (diff)
plug another memleak. bz#1967, from Zhenbo Xu, detected by Melton, ok djm
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r--usr.bin/ssh/readconf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ssh/readconf.c b/usr.bin/ssh/readconf.c
index a18e37b882a..1599f62ec8e 100644
--- a/usr.bin/ssh/readconf.c
+++ b/usr.bin/ssh/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
@@ -814,6 +814,8 @@ parse_int:
else if (opcode == oRemoteForward)
add_remote_forward(options, &fwd);
}
+ free(fwd.connect_host);
+ free(fwd.listen_host);
break;
case oClearAllForwardings: