if (card->tty_buf){ kfree(card->tty_buf); card->tty_buf=NULL; }  if (card->tty_rx){ kfree(card->tty_rx); card->tty_rx=NULL; } 
kfree(card->tty_buf); card->tty_buf = NULL; kfree(card->tty_rx); card->tty_rx = NULL; 
static void wanpipe_tty_close(struct tty_struct *tty, struct file * filp){	sdla_t *card;	unsigned long smp_flags;		if (!tty || !tty->driver_data){		return;	}		card = (sdla_t*)tty->driver_data;		if (!card)		return;	printk(KERN_INFO "%s: Closing TTY Driver!\n",			card->devname);	/* Sanity Check */	if (!card->tty_open)		return;		wanpipe_close(card);	if (--card->tty_open == 0){		lock_adapter_irq(&card->wandev.lock,&smp_flags);			card->tty=NULL;		chdlc_disable_comm_shutdown(card);		unlock_adapter_irq(&card->wandev.lock,&smp_flags);		if (card->tty_buf){			kfree(card->tty_buf);			card->tty_buf=NULL;					}		if (card->tty_rx){			kfree(card->tty_rx);			card->tty_rx=NULL;		}	}	return;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/6a5d362120a61a719095443194cc2d5e9a7027dd/sdla_chdlc.c/clean/drivers/net/wan/sdla_chdlc.c