Wlog fixed memory leak

Wlog fixed memory leak