diff options
author | djm@openbsd.org <djm@openbsd.org> | 2019-09-03 10:28:30 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2019-09-03 10:39:31 +0200 |
commit | 2ab5a8464870cc4b29ddbe849bbbc255729437bf (patch) | |
tree | cab43472c17707fc2fe945dc5d30d8e257879fe5 /authfd.c | |
parent | upstream: factor out confirm_overwrite(); ok markus@ (diff) | |
download | openssh-2ab5a8464870cc4b29ddbe849bbbc255729437bf.tar.xz openssh-2ab5a8464870cc4b29ddbe849bbbc255729437bf.zip |
upstream: fix memleak in ssh_free_identitylist(); ok markus@
OpenBSD-Commit-ID: aa51f77ae2c5330a1f61b2d22933f24a443f9abf
Diffstat (limited to 'authfd.c')
-rw-r--r-- | authfd.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); } |