fixed memory leak in thBase.logging