Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
session: fix rpc_send_ly dnode free function
When rpc_send_ly is called more that 255 times in the same session, it fails, because the context has been acquired too many times. The new_dnode function can not be used for rpc_send_ly because it does not free the output node, it only frees output.tree. Use a mechanism similar to get_data_ly, i.e free the output node returned by sr_rpc_send_tree, call sr_release_data on it as well, and release the context that was used by our new dnode. Signed-off-by: Samuel Gauthier <[email protected]>
- Loading branch information