tx done if tx_up fails..

Hi,
I am trying to call tx_up routine from my filter module.If the tx_up
fails for some reasons(Invalid parameter in my case) and i call the tx_done
after the failure .It is crashing in the tcpip module.If i call tx_done only
on success everything works fine.But i think that is a memory leak. Could
somebody advise.?

regards,

Sreekanth