From b01cfaea03f07066f93f5684e0f72ada65d3f446 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Mon, 20 Mar 2006 04:09:45 +0000 Subject: memory leaks detected by Coverity via elad AT netbsd.org; deraadt@ ok that should be all of them now --- usr.bin/ssh/monitor.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'usr.bin/ssh') diff --git a/usr.bin/ssh/monitor.c b/usr.bin/ssh/monitor.c index 87474fc7a41..a8dc77adfc5 100644 --- a/usr.bin/ssh/monitor.c +++ b/usr.bin/ssh/monitor.c @@ -815,6 +815,10 @@ mm_answer_keyallowed(int sock, Buffer *m) key_blobtype = type; hostbased_cuser = cuser; hostbased_chost = chost; + } else { + xfree(blob); + xfree(cuser); + xfree(chost); } debug3("%s: key %p is %s", -- cgit v1.2.3