Skip to content

Commit a6c0729

Browse files
committed
xml/import: fix a leak when ignoring distances infos
Fixes 806fa7b CID#1530137 Signed-off-by: Brice Goglin <[email protected]>
1 parent 806fa7b commit a6c0729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hwloc/topology-xml.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ hwloc__xml_v2import_distances(hwloc_topology_t topology,
10761076
char *infoname, *infovalue;
10771077
ret = hwloc___xml_import_info(&infoname, &infovalue, state);
10781078
if (ret < 0)
1079-
return ret;
1079+
goto out_with_arrays;
10801080
/* ignored */
10811081
continue;
10821082
} else if (!strcmp(tag, "indexes"))

0 commit comments

Comments
 (0)