diff --git a/src/hlua.c b/src/hlua.c index 60cf8f948..5096768be 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -5544,6 +5544,7 @@ static struct task *hlua_process_task(struct task *task) hlua_ctx_destroy(hlua); task_delete(task); task_free(task); + task = NULL; break; case HLUA_E_AGAIN: /* co process or timeout wake me later. */