Fixed issue with double-free when PC/SC connection manager is unavailable

Fixed issues found from splint(1) output