summaryrefslogtreecommitdiff
path: root/readconf.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2013-06-06 08:22:46 +1000
committerDarren Tucker <dtucker@zip.com.au>2013-06-06 08:22:46 +1000
commit408eaf3ab716096f8faf30f091bd54a2c7a17a09 (patch)
treeccc73e58720d6f62dd88ddb205a63f3afeb8c1e5 /readconf.c
parente52a260f16888ca75390f97de4606943e61785e8 (diff)
downloadopenssh-git-408eaf3ab716096f8faf30f091bd54a2c7a17a09.tar.gz
- 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 45cf910f..7c1c795f 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: