Fix vvp memory leak for user function calls in a continuous assignment.
This commit is contained in:
parent
60ab1daa1f
commit
0d7daf5862
|
|
@ -5785,7 +5785,6 @@ bool of_EXEC_UFUNC(vthread_t thr, vvp_code_t cp)
|
|||
child->wt_context = child_context;
|
||||
child->rd_context = child_context;
|
||||
|
||||
child->parent = thr;
|
||||
child->is_scheduled = 1;
|
||||
vthread_run(child);
|
||||
running_thread = thr;
|
||||
|
|
@ -5793,6 +5792,7 @@ bool of_EXEC_UFUNC(vthread_t thr, vvp_code_t cp)
|
|||
if (child->i_have_ended)
|
||||
return true;
|
||||
|
||||
child->parent = thr;
|
||||
thr->children.insert(child);
|
||||
thr->i_am_joining = 1;
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue