diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2019-09-03 08:28:31 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2019-09-03 08:28:31 +0000 |
commit | bfc61b8bbdb0500d717e231859b1bf7bf10c0474 (patch) | |
tree | b862b2337fbadd3327690f37fc7503b8367da991 | |
parent | 21c6f9cb38eaab21af2cbeb26dc49d7f0c39cb14 (diff) |
fix memleak in ssh_free_identitylist(); ok markus@
-rw-r--r-- | usr.bin/ssh/authfd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/ssh/authfd.c b/usr.bin/ssh/authfd.c index 890ae832c8e..3087d47801f 100644 --- a/usr.bin/ssh/authfd.c +++ b/usr.bin/ssh/authfd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: authfd.c,v 1.115 2019/06/28 13:35:04 deraadt Exp $ */ +/* $OpenBSD: authfd.c,v 1.116 2019/09/03 08:28:30 djm Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -310,6 +310,8 @@ ssh_free_identitylist(struct ssh_identitylist *idl) if (idl->comments != NULL) free(idl->comments[i]); } + free(idl->keys); + free(idl->comments); free(idl); } |