b3cd384 Backport memory fixes

Authored and Committed by Florian Müllner 7 years ago
    Backport memory fixes
    
    Fix some dodgy memory handling that result in session crashes.
    
        
file modified
+8 -1