From 96937bd9144f582330478ed5c5b76dd3286c46e4 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Sun, 26 Mar 2006 14:01:54 +1100 Subject: - djm@cvs.openbsd.org 2006/03/20 04:09:44 [monitor.c] memory leaks detected by Coverity via elad AT netbsd.org; deraadt@ ok that should be all of them now --- ChangeLog | 7 ++++++- monitor.c | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 302b1e1fc..8bebeda19 100644 --- a/ChangeLog +++ b/ChangeLog @@ -56,6 +56,11 @@ [authfile.c] whoever thought that break after return was a good idea needs to get their head examimed + - djm@cvs.openbsd.org 2006/03/20 04:09:44 + [monitor.c] + memory leaks detected by Coverity via elad AT netbsd.org; + deraadt@ ok + that should be all of them now 20060325 - OpenBSD CVS Sync @@ -4313,4 +4318,4 @@ - (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu -$Id: ChangeLog,v 1.4257 2006/03/26 03:00:31 djm Exp $ +$Id: ChangeLog,v 1.4258 2006/03/26 03:01:54 djm Exp $ diff --git a/monitor.c b/monitor.c index 8b304f99c..11244d273 100644 --- a/monitor.c +++ b/monitor.c @@ -1021,6 +1021,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