diff options
-rw-r--r-- | lib/libzfs_core/libzfs_core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libzfs_core/libzfs_core.c b/lib/libzfs_core/libzfs_core.c index 9be34d34b..3110d8903 100644 --- a/lib/libzfs_core/libzfs_core.c +++ b/lib/libzfs_core/libzfs_core.c @@ -830,6 +830,8 @@ lzc_rollback(const char *fsname, char *snapnamebuf, int snapnamelen) const char *snapname = fnvlist_lookup_string(result, "target"); (void) strlcpy(snapnamebuf, snapname, snapnamelen); } + nvlist_free(result); + return (err); } |