[openssh-commits] [openssh] 02/07: upstream: Plug leak of startup_pollfd in debug and child paths.
git+noreply at mindrot.org
git+noreply at mindrot.org
Sat May 24 17:23:52 AEST 2025
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit 3de011ef7a761751afe28ac7ef97fe330d784595
Author: dtucker at openbsd.org <dtucker at openbsd.org>
AuthorDate: Sat May 24 06:43:37 2025 +0000
upstream: Plug leak of startup_pollfd in debug and child paths.
Coverity CID 405024, ok djm@
OpenBSD-Commit-ID: db46047229253e9c4470c8bbf5f82706ac021377
---
sshd.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sshd.c b/sshd.c
index 03732bb09..91608eff7 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshd.c,v 1.618 2025/05/06 05:40:56 djm Exp $ */
+/* $OpenBSD: sshd.c,v 1.619 2025/05/24 06:43:37 dtucker Exp $ */
/*
* Copyright (c) 2000, 2001, 2002 Markus Friedl. All rights reserved.
* Copyright (c) 2002 Niels Provos. All rights reserved.
@@ -1169,6 +1169,7 @@ server_accept_loop(int *sock_in, int *sock_out, int *newsock, int *config_s,
send_rexec_state(config_s[0]);
close(config_s[0]);
free(pfd);
+ free(startup_pollfd);
return;
}
@@ -1201,6 +1202,7 @@ server_accept_loop(int *sock_in, int *sock_out, int *newsock, int *config_s,
log_stderr);
close(config_s[0]);
free(pfd);
+ free(startup_pollfd);
return;
}
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list