[openssh-commits] [openssh] 03/10: upstream: fix memleak in ssh_free_identitylist(); ok markus@

git+noreply at mindrot.org git+noreply at mindrot.org
Tue Sep 3 18:40:38 AEST 2019


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 2ab5a8464870cc4b29ddbe849bbbc255729437bf
Author: djm at openbsd.org <djm at openbsd.org>
Date:   Tue Sep 3 08:28:30 2019 +0000

    upstream: fix memleak in ssh_free_identitylist(); ok markus@
    
    OpenBSD-Commit-ID: aa51f77ae2c5330a1f61b2d22933f24a443f9abf
---
 authfd.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/authfd.c b/authfd.c
index fd8f336f..315c6813 100644
--- a/authfd.c
+++ b/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 at cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -312,6 +312,8 @@ ssh_free_identitylist(struct ssh_identitylist *idl)
 		if (idl->comments != NULL)
 			free(idl->comments[i]);
 	}
+	free(idl->keys);
+	free(idl->comments);
 	free(idl);
 }
 

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list