Skip to content

Commit

Permalink
Add debug code around zfs_close() to try to determine issue #123
Browse files Browse the repository at this point in the history
  • Loading branch information
lundman committed Mar 11, 2014
1 parent dc0a722 commit e41afca
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions lib/libzfs/libzfs_dataset.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,11 +598,18 @@ zfs_open(libzfs_handle_t *hdl, const char *path, int types)
void
zfs_close(zfs_handle_t *zhp)
{
fprintf(stderr, "zfs_close(%p): zfs_props %p\r\n", zhp, zhp->zfs_props);
if (zhp->zfs_mntopts)
free(zhp->zfs_mntopts);
nvlist_free(zhp->zfs_props);
nvlist_free(zhp->zfs_user_props);
nvlist_free(zhp->zfs_recvd_props);
if (zhp->zfs_props)
nvlist_free(zhp->zfs_props);
if (zhp->zfs_user_props)
nvlist_free(zhp->zfs_user_props);
if (zhp->zfs_recvd_props)
nvlist_free(zhp->zfs_recvd_props);

zhp->zfs_props = zhp->zfs_user_props = zhp->zfs_recvd_props = NULL;

free(zhp);
}

Expand Down

0 comments on commit e41afca

Please sign in to comment.