sasl: Fixed a memory leak on OOM