summaryrefslogtreecommitdiff
path: root/usr/src/lib
diff options
context:
space:
mode:
authorLouis Tsien <Louis.Tsien@Sun.COM>2008-11-07 13:56:36 -0500
committerLouis Tsien <Louis.Tsien@Sun.COM>2008-11-07 13:56:36 -0500
commit0a2b1d27cac02f57e17b310f8baeb1dda082c83a (patch)
tree21c5e1f9ac570e1adfc54512d32151882291f70c /usr/src/lib
parentca75c6ea2ddf52ba80ee76e6d5363b8195c18328 (diff)
downloadillumos-joyent-0a2b1d27cac02f57e17b310f8baeb1dda082c83a.tar.gz
6765631 sun4v mem enumerator initialization leaks memory
Diffstat (limited to 'usr/src/lib')
-rw-r--r--usr/src/lib/fm/topo/modules/sun4v/platform-mem/mem_mdesc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/lib/fm/topo/modules/sun4v/platform-mem/mem_mdesc.c b/usr/src/lib/fm/topo/modules/sun4v/platform-mem/mem_mdesc.c
index 4639fa44d9..4e91c74277 100644
--- a/usr/src/lib/fm/topo/modules/sun4v/platform-mem/mem_mdesc.c
+++ b/usr/src/lib/fm/topo/modules/sun4v/platform-mem/mem_mdesc.c
@@ -477,6 +477,7 @@ mem_mdesc_fini(topo_mod_t *mod, md_mem_info_t *mem)
next = dm->dm_next;
topo_mod_strfree(mod, dm->dm_label);
topo_mod_strfree(mod, dm->dm_serid);
+ topo_mod_strfree(mod, dm->dm_part);
topo_mod_free(mod, dm, sizeof (mem_dimm_map_t));
}
for (bm = mem->mem_bank; bm != NULL; bm = cm) {
@@ -487,7 +488,7 @@ mem_mdesc_fini(topo_mod_t *mod, md_mem_info_t *mem)
hm = gm->mg_next;
topo_mod_free(mod, gm, sizeof (mem_grp_t));
}
- for (sm = mem->mem_seg; dm != NULL; sm = snext) {
+ for (sm = mem->mem_seg; sm != NULL; sm = snext) {
snext = sm->sm_next;
topo_mod_free(mod, sm, sizeof (mem_seg_map_t));
}