Fix a memory leak in DestroyTransport.

I tried on my machine for several time. 
But it is hard to trigger the crash even without this commit.

I push this request so we can have more people to test.