Fix leaks

Fixes a leak of capability data immediately following successful authentication.