Explorar el Código

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

80274480 hace 6 meses
padre
commit
aa35c62f0d
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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