From 98d40a74a8f428b44794ada908a86e2cf2b783f8 Mon Sep 17 00:00:00 2001 From: djm Date: Sun, 26 Mar 2006 03:01:54 +0000 Subject: [PATCH] - 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 | 5 +++++ monitor.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 55736a18..6e1a9e3c 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 diff --git a/monitor.c b/monitor.c index 8b304f99..11244d27 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", -- 2.45.1