Mercurial > illumos > illumos-gate
changeset 8039:9cf1ecb066d9
6765631 sun4v mem enumerator initialization leaks memory
author | Louis Tsien <Louis.Tsien@Sun.COM> |
---|---|
date | Fri, 07 Nov 2008 13:56:36 -0500 |
parents | 4213b89e6abe |
children | 42abce45ef67 |
files | usr/src/lib/fm/topo/modules/sun4v/platform-mem/mem_mdesc.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/lib/fm/topo/modules/sun4v/platform-mem/mem_mdesc.c Fri Nov 07 08:47:26 2008 -0800 +++ b/usr/src/lib/fm/topo/modules/sun4v/platform-mem/mem_mdesc.c Fri Nov 07 13:56:36 2008 -0500 @@ -477,6 +477,7 @@ 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 @@ 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)); }