OpenSolaris

Printable Version Enter a New Search
Bug ID 6559696
Synopsis sharemgr: get_one_filesystem() leaks zfs handles
State 10-Fix Delivered (Fix available in build)
Category:Subcategory utility:filesystem
Keywords
Responsible Engineer Doug Mccallum
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_66
Fixed In snv_66
Release Fixed solaris_nevada(snv_66) , solaris_10u6(s10u6_01) (Bug ID:2156369)
Related Bugs
Submit Date 20-May-2007
Last Update Date 29-April-2008
Description
In get_one_filesystem(), we fail to zfs_close() the handle, leaking
it and all its associated memory:

static int
get_one_filesystem(zfs_handle_t *zhp, void *data)
{
        get_all_cbdata_t *cbp = data;

	...

        return (zfs_iter_filesystems(zhp, get_one_filesystem, data));
}
Work Around
N/A
Comments
N/A