]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: fix memleak in ssh_free_identitylist(); ok markus@
authordjm@openbsd.org <djm@openbsd.org>
Tue, 3 Sep 2019 08:28:30 +0000 (08:28 +0000)
committerDamien Miller <djm@mindrot.org>
Tue, 3 Sep 2019 08:39:31 +0000 (18:39 +1000)
OpenBSD-Commit-ID: aa51f77ae2c5330a1f61b2d22933f24a443f9abf

authfd.c

index fd8f336fccdbe4c377906a74fb7bfcadffc7333f..315c6813f77247be9921fa02b5a7217615f823e4 100644 (file)
--- 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@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@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);
 }