#30 Fixed memory leak.