]> git.proxmox.com Git - mirror_zfs.git/commit
Fix memory leak in zpool_clear_label()
authorRichard Yao <ryao@gentoo.org>
Wed, 23 Apr 2014 03:35:38 +0000 (23:35 -0400)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 31 May 2014 00:00:37 +0000 (17:00 -0700)
commit4def05f8a68f7255dfb88606a9b475314c828a06
tree4ea217d5c117460b1c242a7b49373c9f8e2b6713
parent62a05896e8a438a980912236bc2b00fcce71c015
Fix memory leak in zpool_clear_label()

Clang's static analyzer reported a memory leak in zpool_clear_label().
Upon review, it turns out to be right. This should be a very short lived
leak because no daemons use this functionality, but that does not
preclude the possibility of third party daemons that do use it. Lets fix
it to be a good Samaritan.

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Ned Bass <bass6@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #2330
lib/libzfs/libzfs_import.c