kfree failed if case of error while writing session setup message

Change-Id: Ie6223228fad7631c8af5bf2ba6bf55590a7a3ece
Signed-off-by: Eyal Salomon <esalomon@mellanox.com>