1
1
as reported by Coverity with CID 1270441
(previous commit open-mpi/ompi@c25185f3a9 did not fully fix that one)
Этот коммит содержится в:
Gilles Gouaillardet 2015-02-17 14:06:15 +09:00
родитель b762766969
Коммит 55948f2a6d

Просмотреть файл

@ -2078,6 +2078,7 @@ int opal_hwloc_get_sorted_numa_list(hwloc_topology_t topo, char* device_name, op
if (!strcmp(device_name, "auto")) { if (!strcmp(device_name, "auto")) {
count = find_devices(topo, &device_name); count = find_devices(topo, &device_name);
if (count > 1) { if (count > 1) {
free(device_name);
return count; return count;
} }
} }