diff options
author | George Melikov <[email protected]> | 2017-01-21 22:33:11 +0300 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-01-21 11:33:11 -0800 |
commit | bb7ffdaf5ad1c7e65af598830957b6b19835f93f (patch) | |
tree | 6e8d21e3b140f560f61a421015196baf2bd34260 /lib | |
parent | 1b61fa935ca0543ecb2beb8f2cb567bba28a426e (diff) |
OpenZFS 7729 - libzfs_core`lzc_rollback() leaks result nvl
Authored by: Yuri Pankov <[email protected]>
Reviewed by: Matthew Ahrens <[email protected]>
Reviewed by: Prakash Surya <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Ported-by: George Melikov [email protected]
OpenZFS-issue: https://www.illumos.org/issues/7729
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/882877e
Closes #5620
Diffstat (limited to 'lib')
-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); } |