From 55948f2a6dbb5305fc1c528f7349caecdc705f2e Mon Sep 17 00:00:00 2001 From: Gilles Gouaillardet Date: Tue, 17 Feb 2015 14:06:15 +0900 Subject: [PATCH] hwloc: fix misc memory leak as reported by Coverity with CID 1270441 (previous commit open-mpi/ompi@c25185f3a954fd19c55b499f39deadba0d0a4492 did not fully fix that one) --- opal/mca/hwloc/base/hwloc_base_util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/opal/mca/hwloc/base/hwloc_base_util.c b/opal/mca/hwloc/base/hwloc_base_util.c index 1b02f43b8a..cfeb74edb7 100644 --- a/opal/mca/hwloc/base/hwloc_base_util.c +++ b/opal/mca/hwloc/base/hwloc_base_util.c @@ -2078,6 +2078,7 @@ int opal_hwloc_get_sorted_numa_list(hwloc_topology_t topo, char* device_name, op if (!strcmp(device_name, "auto")) { count = find_devices(topo, &device_name); if (count > 1) { + free(device_name); return count; } }