sigar.close() on shutdown else dmalloc complains of leaks

This commit is contained in:
Doug MacEachern 2005-11-09 16:53:09 +00:00
parent f45a6fcb1d
commit 3a822b7d4f
1 changed files with 5 additions and 0 deletions

View File

@ -164,6 +164,11 @@ public class Shell extends ShellBase {
pid); pid);
} }
public void shutdown() {
this.sigar.close();
super.shutdown();
}
public static void main(String[] args) { public static void main(String[] args) {
Shell shell = new Shell(); Shell shell = new Shell();