summaryrefslogtreecommitdiff
path: root/authfd.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2019-09-03 08:28:30 +0000
committerDamien Miller <djm@mindrot.org>2019-09-03 18:39:31 +1000
commit2ab5a8464870cc4b29ddbe849bbbc255729437bf (patch)
treecab43472c17707fc2fe945dc5d30d8e257879fe5 /authfd.c
parent85443f165b4169b2a448b3e24bc1d4dc5b3156a4 (diff)
upstream: fix memleak in ssh_free_identitylist(); ok markus@
OpenBSD-Commit-ID: aa51f77ae2c5330a1f61b2d22933f24a443f9abf
Diffstat (limited to 'authfd.c')
-rw-r--r--authfd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/authfd.c b/authfd.c
index fd8f336fc..315c6813f 100644
--- a/authfd.c
+++ b/authfd.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: authfd.c,v 1.115 2019/06/28 13:35:04 deraadt Exp $ */ 1/* $OpenBSD: authfd.c,v 1.116 2019/09/03 08:28:30 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -312,6 +312,8 @@ ssh_free_identitylist(struct ssh_identitylist *idl)
312 if (idl->comments != NULL) 312 if (idl->comments != NULL)
313 free(idl->comments[i]); 313 free(idl->comments[i]);
314 } 314 }
315 free(idl->keys);
316 free(idl->comments);
315 free(idl); 317 free(idl);
316} 318}
317 319