add missing mutex unlock in error path

Merge to 5.1
(cherry picked from commit 9134aa4ee8)
This commit is contained in:
Matthew Flatt 2011-02-01 19:36:22 -07:00 committed by Eli Barzilay
parent d01e6a8dcc
commit 0b4f5a093d

View File

@ -1660,6 +1660,7 @@ static void invoke_rtcall(Scheme_Future_State * volatile fs, future_t * volatile
future->status = FINISHED;
future->work_completed = 1;
future->retval = 0;
mzrt_mutex_unlock(fs->future_mutex);
} else {
/* Signal the waiting worker thread that it
can continue running machine code */