summaryrefslogtreecommitdiffstats
path: root/ProcessList.c
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-02-29 21:57:27 -0300
committerHisham <hisham@gobolinux.org>2016-02-29 21:57:27 -0300
commit84a69b1ea4bb8995e0e563916acb0332fa1cf5f4 (patch)
tree4c6f28f92e34d0042ee539785fd4bbee3c9008bd /ProcessList.c
parente77811e99bfbd59fd1108dc2d13bd57e80f7590d (diff)
Release resource when using hwloc
Diffstat (limited to 'ProcessList.c')
-rw-r--r--ProcessList.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ProcessList.c b/ProcessList.c
index 83e200eb..a49b4f12 100644
--- a/ProcessList.c
+++ b/ProcessList.c
@@ -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);

© 2014-2024 Faster IT GmbH | imprint | privacy policy