summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2021-08-17 01:38:21 -0700
committerVito Caputo <vcaputo@pengaru.com>2021-08-17 01:38:21 -0700
commit891491fe7be7ad4568118f29e3159b9dfad9d933 (patch)
tree63d6e019d59e9966ecbb6646ac6cf81555916b72 /src
parent101ea7b0620aa65b058a1f704cdfcae0d498c542 (diff)
op: use thunk_dispatch() for cb
Using the thunk->dispatch() method directly as the iou_op cb leaks the thunk
Diffstat (limited to 'src')
-rw-r--r--src/op.h2
1 files changed, 1 insertions, 1 deletions
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
© All Rights Reserved