trader: Fix memory leaks
Merge pull request #38 from akitada/trader-leaks

trader: Fix memory leaks