Skip to content

Commit

Permalink
solaris: fix a memory leak on error path
Browse files Browse the repository at this point in the history
Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
  • Loading branch information
bgoglin committed Jun 23, 2019
1 parent 5461f9c commit 9b1630a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/topology-solaris.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright © 2009 CNRS
* Copyright © 2009-2017 Inria. All rights reserved.
* Copyright © 2009-2019 Inria. All rights reserved.
* Copyright © 2009-2011 Université Bordeaux
* Copyright © 2011 Cisco Systems, Inc. All rights reserved.
* Copyright © 2011 Oracle and/or its affiliates. All rights reserved.
Expand Down Expand Up @@ -540,6 +540,9 @@ hwloc_look_lgrp(struct hwloc_topology *topology)
}
hwloc_distances_set(topology, HWLOC_OBJ_NUMANODE, curlgrp, indexes, glob_lgrps, distances, 0 /* OS cannot force */);
glob_lgrps = NULL; /* dont free it below */
} else {
free(distances);
free(indexes);
}
}
#endif /* HAVE_DECL_LGRP_LATENCY_COOKIE */
Expand Down

0 comments on commit 9b1630a

Please sign in to comment.