Fix vvp memory leak for user function calls in a continuous assignment.

This commit is contained in:
Martin Whitaker 2014-12-07 13:47:50 +00:00
parent 60ab1daa1f
commit 0d7daf5862
1 changed files with 1 additions and 1 deletions

View File

@ -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;