| Index: src/native_client/src/trusted/service_runtime/nacl_syscall_common.c
|
| diff --git a/src/native_client/src/trusted/service_runtime/nacl_syscall_common.c b/src/native_client/src/trusted/service_runtime/nacl_syscall_common.c
|
| index 3c8507ac33e3f7abf45cfe35f7a1d32932015c10..8e74a868f6f93fb261a45827765c37e363900b78 100644
|
| --- a/src/native_client/src/trusted/service_runtime/nacl_syscall_common.c
|
| +++ b/src/native_client/src/trusted/service_runtime/nacl_syscall_common.c
|
| @@ -103,8 +103,8 @@ void NaClSysCommonThreadSuicide(struct NaClAppThread *natp) {
|
| NaClXCondVarBroadcast(&nap->threads_cv);
|
| NaClLog(3, " unlocking thread table\n");
|
| NaClXMutexUnlock(&nap->threads_mu);
|
| - NaClLog(3, " decref'ing thread object (from count %d)\n", natp->refcount);
|
| - NaClAppThreadDecRef(natp);
|
| + NaClLog(3, " freeing thread object\n");
|
| + NaClAppThreadDtor(natp);
|
| NaClLog(3, " NaClThreadExit\n");
|
| NaClThreadExit(); /* should not return */
|
| NaClLog(LOG_ERROR, "INCONCEIVABLE!\n");
|
|
|