sigar.close() on shutdown else dmalloc complains of leaks
This commit is contained in:
1 parent
f45a6fcb1d
commit
3a822b7d4f
1 file changed
+5
@@ -164,6 +164,11 @@ public class Shell extends ShellBase {
|
||||
pid);
|
||||
}
|
||||
|
||||
public void shutdown() {
|
||||
this.sigar.close();
|
||||
super.shutdown();
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
Shell shell = new Shell();
|
||||
|
||||
|
||||
Reference in new issue
Block a user