[openssh-commits] [openssh] 03/05: upstream: fix memory leak of mux_ctx; patch from Sergiy Lozovsky
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Jul 3 15:16:48 AEST 2020
This is an automated email from the git hooks/post-receive script.
djm pushed a commit to branch master
in repository openssh.
commit 1b90ddde49e2ff377204082b6eb130a096411dc1
Author: djm at openbsd.org <djm at openbsd.org>
Date: Fri Jul 3 05:08:41 2020 +0000
upstream: fix memory leak of mux_ctx; patch from Sergiy Lozovsky
via bz3189 ok dtucker
OpenBSD-Commit-ID: db249bd4526fd42d0f4f43f72f7b8b7705253bde
---
channels.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/channels.c b/channels.c
index 95a51e21..14f958fa 100644
--- a/channels.c
+++ b/channels.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: channels.c,v 1.398 2020/04/25 06:59:36 dtucker Exp $ */
+/* $OpenBSD: channels.c,v 1.399 2020/07/03 05:08:41 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo at cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo at cs.hut.fi>, Espoo, Finland
@@ -621,6 +621,8 @@ channel_free(struct ssh *ssh, Channel *c)
c->path = NULL;
free(c->listening_addr);
c->listening_addr = NULL;
+ free(c->mux_ctx);
+ c->mux_ctx = NULL;
while ((cc = TAILQ_FIRST(&c->status_confirms)) != NULL) {
if (cc->abandon_cb != NULL)
cc->abandon_cb(ssh, c, cc->ctx);
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list