summaryrefslogtreecommitdiff
path: root/usr/src/common/mdesc/mdesc_scandag.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/common/mdesc/mdesc_scandag.c')
-rw-r--r--usr/src/common/mdesc/mdesc_scandag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/common/mdesc/mdesc_scandag.c b/usr/src/common/mdesc/mdesc_scandag.c
index 58e0b0d39f..11b4e24ab2 100644
--- a/usr/src/common/mdesc/mdesc_scandag.c
+++ b/usr/src/common/mdesc/mdesc_scandag.c
@@ -112,7 +112,7 @@ md_scan_dag(md_t *ptr,
node_name_cookie, arc_name_cookie,
seenp, &idx, stashp, 0);
- mdp->freep(seenp);
+ mdp->freep(seenp, mdp->element_count);
return (res >= 0 ? idx : res);
}