Avoid double-free when stopping client

Review Request #3793 — Created Jan. 31, 2025 and submitted

Information

ibis/ibis
default

Reviewers

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.

Summary ID
Avoid double-free when stopping client
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.
88e1e4e467c690313ca965ff5bca9c78501a9da2
grim
  1. Nice work, thanks!!

  2. 
      
grim
Review request changed
Status:
Completed