]> git.proxmox.com Git - mirror_zfs.git/commit
Fix traverse_impl() kmem leak
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 15 Aug 2018 16:53:44 +0000 (09:53 -0700)
committerGitHub <noreply@github.com>
Wed, 15 Aug 2018 16:53:44 +0000 (09:53 -0700)
commit4338c5c06fbe92fdef9a5f0f7e457fae98c94b4d
treed2711cd65c7da85cf965c858b11df14b2f28b123
parent1dfde3d9b20b3be24a0cb24520652c22bbeb7499
Fix traverse_impl() kmem leak

The error path must free the memory allocated by this function or
it will be leaked.  In practice, this would leak only a few bytes
of memory under rare circumstances and thus is unlikely to have
caused any real problems.  This issue was caught by the kmemleak.

Reviewed-by: Giuseppe Di Natale <guss80@gmail.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Chunwei Chen <tuxoko@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7791
module/zfs/dmu_traverse.c