Fixes #374. Fix for memory leak in session handler
Merge pull request #375 from pencilblue/issue/PB374

Fixes #374. Fix for memory leak in session handler