Release resource when using hwloc

This commit is contained in:
Hisham 2016-02-29 21:57:27 -03:00
parent e77811e99b
commit 84a69b1ea4
1 changed files with 5 additions and 0 deletions

View File

@ -108,6 +108,11 @@ ProcessList* ProcessList_init(ProcessList* this, ObjectClass* klass, UsersTable*
} }
void ProcessList_done(ProcessList* this) { void ProcessList_done(ProcessList* this) {
#ifdef HAVE_LIBHWLOC
if (this->topologyOk) {
hwloc_topology_destroy(this->topology);
}
#endif
Hashtable_delete(this->processTable); Hashtable_delete(this->processTable);
Vector_delete(this->processes); Vector_delete(this->processes);
Vector_delete(this->processes2); Vector_delete(this->processes2);