Avoid double-free when stopping client
Review Request #3793 — Created Jan. 31, 2025 and submitted — Latest diff uploaded
If the client is stopping normally, but closing the connection itself does error, then we set that as the error.
But
ibis_client_set_error
takes ownership of the error, so we shouldn't free it in that case.
Compiled only.