ssl and double free or corruption error