sigar.close() on shutdown else dmalloc complains of leaks
This commit is contained in:
parent
f45a6fcb1d
commit
3a822b7d4f
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue