@@ -2789,13 +2789,15 @@ HWLOC_DECLSPEC hwloc_obj_t hwloc_topology_insert_misc_object(hwloc_topology_t to
2789
2789
* This function returns a new Group object.
2790
2790
*
2791
2791
* The caller should (at least) initialize its sets before inserting
2792
- * the object in the topology. See hwloc_topology_insert_group_object().
2792
+ * the object in the topology, see hwloc_topology_insert_group_object().
2793
+ * Or it may decide not to insert and just free the group object
2794
+ * by calling hwloc_topology_free_group_object().
2793
2795
*
2794
2796
* \return The allocated object on success.
2795
2797
* \return \c NULL on error.
2796
2798
*
2797
- * \note The only way to free this object is to pass it to hwloc_topology_insert_group_object().
2798
- * If properly inserted, it will be freed when the entire topology is freed.
2799
+ * \note If successfully inserted by hwloc_topology_insert_group_object(),
2800
+ * the object will be freed when the entire topology is freed.
2799
2801
* If insertion failed (e.g. \c NULL or empty CPU and node-sets),
2800
2802
* it is freed before returning the error.
2801
2803
*/
@@ -2853,6 +2855,9 @@ HWLOC_DECLSPEC int hwloc_topology_free_group_object(hwloc_topology_t topology, h
2853
2855
*
2854
2856
* \note If the insertion fails, the input group object is freed.
2855
2857
*
2858
+ * \note If the group object should be discarded instead of inserted,
2859
+ * it may be passed to hwloc_topology_free_group_object() instead.
2860
+ *
2856
2861
* \note \p topology must be the same as the one previously passed
2857
2862
* to hwloc_topology_alloc_group_object().
2858
2863
*
0 commit comments