Skip to content

Commit a6873cd

Browse files
committed
coro: Plug with NULL after destoryed
Signed-off-by: Hiroshi Hatake <hiroshi@chronosphere.io>
1 parent 3eacc86 commit a6873cd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

include/fluent-bit/flb_coro.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ static FLB_INLINE void flb_coro_destroy(struct flb_coro *coro)
9595

9696
if (coro->callee != NULL) {
9797
co_delete(coro->callee);
98+
coro->callee = NULL;
9899
}
99100

100101
flb_free(coro);

0 commit comments

Comments
 (0)