[openrtm-commit:02705] r979 - trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/port

openrtm @ openrtm.org openrtm @ openrtm.org
2017年 7月 26日 (水) 12:03:01 JST


Author: t-katami
Date: 2017-07-26 12:03:01 +0900 (Wed, 26 Jul 2017)
New Revision: 979

Modified:
   trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/port/SharedMemory.java
Log:
[compat,bugfix,->RELENG_1_2] Fixed the item pointed out by the static code analysis tool. 

Modified: trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/port/SharedMemory.java
===================================================================
--- trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/port/SharedMemory.java	2017-07-26 02:21:49 UTC (rev 978)
+++ trunk/OpenRTM-aist-Java/jp.go.aist.rtm.RTC/src/jp/go/aist/rtm/RTC/port/SharedMemory.java	2017-07-26 03:03:01 UTC (rev 979)
@@ -146,6 +146,7 @@
             try{
                 RandomAccessFile file = new RandomAccessFile(address, "rw");
                 file.setLength(m_memory_size);
+                file.close();
             }
             catch(Exception ex) {
                 rtcout.println(Logbuf.ERROR,"Open error  "+ex.toString() );
@@ -215,6 +216,7 @@
             try{
                 RandomAccessFile file = new RandomAccessFile(address, "rw");
                 file.setLength(m_memory_size);
+                file.close();
             }
             catch(Exception ex) {
                 rtcout.println(Logbuf.ERROR,"Open error  "+ex.toString() );



More information about the openrtm-commit mailing list