Who owns the rist_peer data?
The rist_peer_create
function returns an allocated rist_peer
instance.
If the client is finished with this instance then the rist_peer_destroy
function appears to be the logical function to call.
However, when executing under valgrind this highlights invalid access to that data.
It is noticeable in the ristsender.c and ristreceiver.c samples that rist_peer_destroy
is not called.
If the client does not own this data then how should it remove a peer - and what purpose does rist_peer_destroy
serve?
A reproducible test case is attached. The sender/listener, receiver/caller configuration appears to trigger it.
Normal execution does not show an issue, but valgrind highlights the invalid access.