Mercurial > illumos > illumos-gate
changeset 10940:c04a3259b948
6897314 SES enumerator LID processing leaks memory
author | Eric Schrock <Eric.Schrock@Sun.COM> |
---|---|
date | Tue, 03 Nov 2009 15:48:39 -0800 |
parents | 343d43cca32b |
children | 005529612762 |
files | usr/src/lib/fm/topo/modules/common/ses/ses.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/lib/fm/topo/modules/common/ses/ses.c Tue Nov 03 22:45:46 2009 +0100 +++ b/usr/src/lib/fm/topo/modules/common/ses/ses.c Tue Nov 03 15:48:39 2009 -0800 @@ -1294,8 +1294,7 @@ if (nvlist_lookup_string(props, LIBSES_EN_PROP_SUBCHASSIS_ID, &lid) != 0) { have_subchassis = B_FALSE; - if ((lid = topo_mod_zalloc(mod, sizeof (char))) == NULL) - goto error; + lid = ""; } topo_mod_dprintf(mod, "ses_enum_gather: Enclosure Node (%s) "