fix major problem in session management (double free)
fix major problem in session management (double free)


grahamegrieve/fhirserver,grahamegrieve/fhirserver,grahamegrieve/fhirserver,grahamegrieve/fhirserver