From bfc61b8bbdb0500d717e231859b1bf7bf10c0474 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Tue, 3 Sep 2019 08:28:31 +0000 Subject: fix memleak in ssh_free_identitylist(); ok markus@ --- usr.bin/ssh/authfd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin/ssh/authfd.c') 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 * Copyright (c) 1995 Tatu Ylonen , 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); } -- cgit v1.2.3