diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2021-08-17 01:38:21 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2021-08-17 01:38:21 -0700 |
commit | 891491fe7be7ad4568118f29e3159b9dfad9d933 (patch) | |
tree | 63d6e019d59e9966ecbb6646ac6cf81555916b72 | |
parent | 101ea7b0620aa65b058a1f704cdfcae0d498c542 (diff) |
op: use thunk_dispatch() for cb
Using the thunk->dispatch() method directly as the iou_op cb leaks
the thunk
-rw-r--r-- | src/op.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -7,7 +7,7 @@ /* ergonomic helper for submitting a thunk_t as a cb+cb_data pair to iou_op_queue() */ static inline void op_queue(iou_t *iou, iou_op_t *op, thunk_t *thunk) { - return iou_op_queue(iou, op, (int (*)(void *))thunk->dispatch, thunk); + return iou_op_queue(iou, op, (int (*)(void *))thunk_dispatch, thunk); } #endif |