Fix leaks

Fixes a leak of capability data immediately following successful authentication and during session deallocation.