another race condidtion memory leak identified and fixed