summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2006-03-19 02:22:33 +0000
committerDamien Miller <djm@cvs.openbsd.org>2006-03-19 02:22:33 +0000
commit793779b49397bdcbe037f3c69be474ac60158557 (patch)
treea3c01ad7e41e93f11c7941cf11611f06a7513771
parentfeb83da3be75782fa3d13d4304ba92c04a1a3afb (diff)
memory leaks detected by Coverity via elad AT netbsd.org;
ok deraadt@ dtucker@
-rw-r--r--usr.bin/ssh/serverloop.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/serverloop.c b/usr.bin/ssh/serverloop.c
index c4d43358808..b108d327201 100644
--- a/usr.bin/ssh/serverloop.c
+++ b/usr.bin/ssh/serverloop.c
@@ -35,7 +35,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: serverloop.c,v 1.128 2006/03/04 04:12:58 djm Exp $");
+RCSID("$OpenBSD: serverloop.c,v 1.129 2006/03/19 02:22:32 djm Exp $");
#include <sys/types.h>
#include <sys/wait.h>
@@ -1081,6 +1081,7 @@ server_input_global_request(int type, u_int32_t seq, void *ctxt)
success = channel_cancel_rport_listener(cancel_address,
cancel_port);
+ xfree(cancel_address);
}
if (want_reply) {
packet_start(success ?