From 651ba2181662b3268af459f5b9cea52fd6772e8b Mon Sep 17 00:00:00 2001 From: Greg Alexander Date: Sun, 30 Apr 2017 11:53:20 -0400 Subject: [PATCH] don't call pty_release() because it always fails, and because we never pty_setowner()ed in the first place. never noticed it before because it's only called if the shell command fails (apparently) --- dropbear/svr-chansession.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dropbear/svr-chansession.c b/dropbear/svr-chansession.c index 26276bf..e5fad09 100644 --- a/dropbear/svr-chansession.c +++ b/dropbear/svr-chansession.c @@ -311,9 +311,9 @@ static void closechansess(struct Channel *channel) { li = chansess_login_alloc(chansess); login_logout(li); login_free_entry(li); -#endif /* 0 */ pty_release(chansess->tty); +#endif /* 0 */ m_free(chansess->tty); }