diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2006-03-20 04:09:45 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2006-03-20 04:09:45 +0000 |
commit | b01cfaea03f07066f93f5684e0f72ada65d3f446 (patch) | |
tree | 602bf07015154fa9f75d9494c13ba8adae648c76 /usr.bin/ssh/monitor.c | |
parent | 79fbbc2f297eaad34087e91d6d8d03ef76c8808b (diff) |
memory leaks detected by Coverity via elad AT netbsd.org;
deraadt@ ok
that should be all of them now
Diffstat (limited to 'usr.bin/ssh/monitor.c')
-rw-r--r-- | usr.bin/ssh/monitor.c | 4 |
1 files changed, 4 insertions, 0 deletions
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", |