diff options
author | kmacy <kmacy@FreeBSD.org> | 2006-12-07 02:05:13 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2006-12-07 02:05:13 +0000 |
commit | d581c841893296997bb27a6a35049a51daff424a (patch) | |
tree | f1f2897c5a437cd12df256663ce9efea6853d77d /sys | |
parent | 7158c24a11ae1308dc44cb2a570be199138227af (diff) | |
download | FreeBSD-src-d581c841893296997bb27a6a35049a51daff424a.zip FreeBSD-src-d581c841893296997bb27a6a35049a51daff424a.tar.gz |
fix CID 1670 by freeing pointer listp before returning
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sun4v/mdesc/mdesc_vdevfindval.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sun4v/mdesc/mdesc_vdevfindval.c b/sys/sun4v/mdesc/mdesc_vdevfindval.c index 8216996..be2db6f 100644 --- a/sys/sun4v/mdesc/mdesc_vdevfindval.c +++ b/sys/sun4v/mdesc/mdesc_vdevfindval.c @@ -91,6 +91,7 @@ md_vdev_find_val(device_t dev, char *namep, uint64_t *valp) md_get_prop_val(mdp, node, namep, valp); done: + free(listp, M_DEVBUF); md_put(mdp); return (error); |