Skip to content

Commit

Permalink
call print_nvlist before free in case it does something neat
Browse files Browse the repository at this point in the history
  • Loading branch information
lundman committed Mar 11, 2014
1 parent e41afca commit e2f9ae5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/libzfs/libzfs_dataset.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,8 +601,12 @@ 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);
if (zhp->zfs_props)
if (zhp->zfs_props) {
nvlist_print(stderr, zhp->zfs_props);
nvlist_free(zhp->zfs_props);
}
fprintf(stderr, "zfs_close(%p): zfs_user_props %p\r\n", zhp,
zhp->zfs_user_props);
if (zhp->zfs_user_props)
nvlist_free(zhp->zfs_user_props);
if (zhp->zfs_recvd_props)
Expand Down

0 comments on commit e2f9ae5

Please sign in to comment.