plug leaks
Merge branch 'master' of github.com:PADL/CredUI
Merge branch 'master' of github.com:PADL/CredUI
some cleanups
add some asserts