Commit 77bc35d
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 <samuel.gauthier@6wind.com>1 parent 02e6cf7 commit 77bc35d
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1472 | 1472 | | |
1473 | 1473 | | |
1474 | 1474 | | |
1475 | | - | |
| 1475 | + | |
| 1476 | + | |
| 1477 | + | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
1476 | 1486 | | |
1477 | 1487 | | |
1478 | 1488 | | |
| |||
0 commit comments