Attention is currently required from: fixeria. pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-cbc/+/28704 )
Change subject: Use cbc_{cbsp,sbcap}_link_close when possible ......................................................................
Patch Set 1:
(1 comment)
File src/cbsp_link.c:
https://gerrit.osmocom.org/c/osmo-cbc/+/28704/comment/feb551a9_174aa4bf PS1, Line 155: cbc_cbsp_link_close(link);
Unrelated: looks like we leak memory here. I think we need to: […]
No we don't. this function calls osmo_stream_srv_close(), which calls the close_cb (cbsp_cbc_closed_cb) which sends CBSP_LINK_E_CMD_CLOSE to the FSM which terminates it, and the cleanup_cb of the fsm frees everything.