channel_free(id);
channel_free(c);
channel_input_open_failure(int type, int plen, void *ctxt){	int id, reason;	char *msg = NULL, *lang = NULL;	Channel *c;	if (!compat20)		packet_integrity_check(plen, 4, type);	id = packet_get_int();	c = channel_lookup(id);	if (c==NULL || c->type != SSH_CHANNEL_OPENING)		packet_disconnect("Received open failure for "		    "non-opening channel %d.", id);	if (compat20) {		reason = packet_get_int();		if (!(datafellows & SSH_BUG_OPENFAILURE)) {			msg  = packet_get_string(NULL);			lang = packet_get_string(NULL);		}		packet_done();		log("channel_open_failure: %d: reason %d %s", id,		    reason, msg ? msg : "<no additional info>");		if (msg != NULL)			xfree(msg);		if (lang != NULL)			xfree(lang);	}	/* Free the channel.  This will also close the socket. */	channel_free(id);}