mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
Release resource when using hwloc
This commit is contained in:
parent
e77811e99b
commit
84a69b1ea4
@ -108,6 +108,11 @@ ProcessList* ProcessList_init(ProcessList* this, ObjectClass* klass, UsersTable*
|
||||
}
|
||||
|
||||
void ProcessList_done(ProcessList* this) {
|
||||
#ifdef HAVE_LIBHWLOC
|
||||
if (this->topologyOk) {
|
||||
hwloc_topology_destroy(this->topology);
|
||||
}
|
||||
#endif
|
||||
Hashtable_delete(this->processTable);
|
||||
Vector_delete(this->processes);
|
||||
Vector_delete(this->processes2);
|
||||
|
Loading…
Reference in New Issue
Block a user