Merge v5.14-rc3 into usb-next
[linux-2.6-microblaze.git] / tools / perf / util / map.c
index 8af693d..72e7f36 100644 (file)
@@ -192,6 +192,8 @@ struct map *map__new(struct machine *machine, u64 start, u64 len,
                        if (!(prot & PROT_EXEC))
                                dso__set_loaded(dso);
                }
+
+               nsinfo__put(dso->nsinfo);
                dso->nsinfo = nsi;
 
                if (build_id__is_defined(bid))