From 891491fe7be7ad4568118f29e3159b9dfad9d933 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 17 Aug 2021 01:38:21 -0700 Subject: op: use thunk_dispatch() for cb Using the thunk->dispatch() method directly as the iou_op cb leaks the thunk --- src/op.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/op.h b/src/op.h index ccb1932..d7c196d 100644 --- a/src/op.h +++ b/src/op.h @@ -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 -- cgit v1.2.3