Skip to content

Commit

Permalink
7729 libzfs_core`lzc_rollback() leaks result nvl
Browse files Browse the repository at this point in the history
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Prakash Surya <prakash.surya@delphix.com>
Approved by: Dan McDonald <danmcd@omniti.com>
  • Loading branch information
Yuri Pankov authored and ahrens committed Jan 18, 2017
1 parent b7f9f60 commit ac42848
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions usr/src/lib/libzfs_core/common/libzfs_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,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);
}

Expand Down

0 comments on commit ac42848

Please sign in to comment.