fixed memory leak in session enumeration