Fixed server memory leak