Talk:Unreleased Resource

From OWASP
Jump to: navigation, search

an even more vicious example for java is the following: { Runtime rt = Runtime.getRuntime(); Process p = rt.exec("ls"); }

This implicitely creates three opened streams (input, output and error) which should be closed.