Kaynağa Gözat

Z991239-6077 #comment: 解决UOS平台共享内存库存在的句柄泄漏问题

80274480 6 ay önce
ebeveyn
işleme
aa35c62f0d
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      Other/libsharememory/libsharememory.cpp

+ 1 - 0
Other/libsharememory/libsharememory.cpp

@@ -240,6 +240,7 @@ public:
 		}
 		if (m_shid >= 0) {
             shm_unlink(m_strshmname);
+			close(m_shid);
 			m_shid = -1;
 		}
 #endif //_MSC_VER