summaryrefslogtreecommitdiffstats
path: root/channels.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2000-12-30 03:25:14 +0000
committerBen Lindstrom <mouring@eviladmin.org>2000-12-30 03:25:14 +0000
commit6c3ae2ba053d7d9e615af5df72162ce912051c2a (patch)
treed302ac6657cb12d4dc4071276e6ef136e7381050 /channels.c
parentf5410351c360e484a7831650458724f2cc084688 (diff)
- (bal) OpenBSD CVS Update
- markus@cvs.openbsd.org 2000/12/29 22:19:13 [channels.c] missing xfree; from vaughan99@yahoo.com
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/channels.c b/channels.c
index 11cdf1bb..b1fcd7ca 100644
--- a/channels.c
+++ b/channels.c
@@ -40,7 +40,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: channels.c,v 1.78 2000/12/29 11:05:55 markus Exp $");
+RCSID("$OpenBSD: channels.c,v 1.79 2000/12/29 22:19:13 markus Exp $");
#include "ssh.h"
#include "packet.h"
@@ -307,9 +307,13 @@ void
channel_free(int id)
{
Channel *c = channel_lookup(id);
+ char *s = channel_open_message();
+
if (c == NULL)
packet_disconnect("channel free: bad local channel %d", id);
- debug("channel_free: channel %d: status: %s", id, channel_open_message());
+ debug("channel_free: channel %d: status: %s", id, s);
+ xfree(s);
+
if (c->dettach_user != NULL) {
debug("channel_free: channel %d: dettaching channel user", id);
c->dettach_user(c->self, NULL);