  sgx_status_t CEnclave::error_trts2urts(unsigned int trts_error)
  {
      if(trts_error == (unsigned int)SE_ERROR_READ_LOCK_FAIL)
-@@ -241,7 +252,7 @@
+@@ -241,7 +254,7 @@
      return (sgx_status_t)trts_error;
  }
  

     LockGuard lock(&m_thread_mutex);
     trust_thread->decrease_ref();
     return;
@@ -454,7 +481,7 @@
 
 sgx_status_t CTrustThreadPool::new_thread()
 {

diff -Nur psw/urts/enclave.cpp psw/urts/enclave.cpp
--- psw/urts/enclave.cpp
+++ psw/urts/enclave.cpp
@@ -43,12 +43,11 @@
 #include "rts_cmd.h"
 #include <assert.h>
 #include "rts.h"
