Mercurial > illumos > illumos-gate
changeset 3810:fccde451ce45
6509343 PCI enumerator has memory leak
author | zx143588 |
---|---|
date | Tue, 13 Mar 2007 15:00:42 -0700 |
parents | 207dfa4ee73b |
children | 7f48bd1c24e5 |
files | usr/src/lib/fm/topo/modules/common/pcibus/did_props.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/lib/fm/topo/modules/common/pcibus/did_props.c Tue Mar 13 14:23:35 2007 -0700 +++ b/usr/src/lib/fm/topo/modules/common/pcibus/did_props.c Tue Mar 13 15:00:42 2007 -0700 @@ -425,8 +425,11 @@ while (pnode != NULL) { if (topo_node_label(pnode, &plabel, &err) < 0) break; - if (strcmp(plabel, label) != 0) + if (strcmp(plabel, label) != 0) { + topo_mod_strfree(mp, plabel); break; + } + topo_mod_strfree(mp, plabel); cnode = pnode; pnode = pnode->tn_parent; }