# HG changeset patch # User Eric Schrock # Date 1257292119 28800 # Node ID c04a3259b94820f1d226f16c22ecb41b7d5b1706 # Parent 343d43cca32b456f79f86768b1b13d06c3ca91bd 6897314 SES enumerator LID processing leaks memory diff -r 343d43cca32b -r c04a3259b948 usr/src/lib/fm/topo/modules/common/ses/ses.c --- 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) "