Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

resource leak java

//Resource leak: 'Object' is never closed

 Type Object = new Type();
 Object.doSomething();

 Object.close() //This is to ensure that the object is clossed to prevent leak
 
PREVIOUS NEXT
Tagged: #resource #leak #java
ADD COMMENT
Topic
Name
1+4 =