mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-26 23:34:55 +02:00
upstream: fix memleak in ssh_free_identitylist(); ok markus@
OpenBSD-Commit-ID: aa51f77ae2c5330a1f61b2d22933f24a443f9abf
This commit is contained in:
parent
85443f165b
commit
2ab5a84648
4
authfd.c
4
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>
|
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||||
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
* 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)
|
if (idl->comments != NULL)
|
||||||
free(idl->comments[i]);
|
free(idl->comments[i]);
|
||||||
}
|
}
|
||||||
|
free(idl->keys);
|
||||||
|
free(idl->comments);
|
||||||
free(idl);
|
free(idl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user