Ts 3097

Fix ssl context storage free issues.