commit 301c0f94e0a54823bfd530c36b5f9c9d9862332b
Author: Brice Goglin <Brice.Goglin@inria.fr>
Date:   Wed Dec 20 18:03:30 2017 +0100

    core: don't forget to mark the topology as modified after attaching a memory child
    
    Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>

diff --git a/hwloc/topology.c b/hwloc/topology.c
index d827d5f5..4dd41994 100644
--- a/hwloc/topology.c
+++ b/hwloc/topology.c
@@ -1574,6 +1574,8 @@ hwloc__attach_memory_object(struct hwloc_topology *topology, hwloc_obj_t parent,
       hwloc_bitmap_set(topology->levels[0][0]->nodeset, obj->os_index);
     hwloc_bitmap_set(topology->levels[0][0]->complete_nodeset, obj->os_index);
   }
+
+  topology->modified = 1;
   return obj;
 }
 
