]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: memleak of certificate path; ok dtucker@
authordjm@openbsd.org <djm@openbsd.org>
Mon, 15 Sep 2025 04:50:42 +0000 (04:50 +0000)
committerDamien Miller <djm@mindrot.org>
Mon, 15 Sep 2025 06:13:23 +0000 (16:13 +1000)
OpenBSD-Commit-ID: 90dc5390f2756ba339e2e6df54d4b8651d64c1e7

ssh.c

diff --git a/ssh.c b/ssh.c
index 58cfedf6d969f7c699f397efd01d5bd0eaf376f5..f4524e384544c2a16ec83ecb3e7e6040782249f4 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssh.c,v 1.617 2025/09/04 00:29:09 djm Exp $ */
+/* $OpenBSD: ssh.c,v 1.618 2025/09/15 04:50:42 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2468,6 +2468,7 @@ load_public_identity_files(const struct ssh_conn_info *cinfo)
                        free(cp);
                        continue;
                }
+               free(cp);
                /* NB. leave filename pointing to private key */
                identity_files[n_ids] = xstrdup(filename);
                identity_keys[n_ids] = public;