Ver Fonte

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

80274480 há 6 meses atrás
pai
commit
aa35c62f0d
1 ficheiros alterados com 1 adições e 0 exclusões
  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