Fix nonce1 and sessionid memory leak
Merge pull request #316 from Elbandi/v5_0-leakfix

Fix nonce1 and sessionid memory leak