diff options
author | liaoyuxiangqin <[email protected]> | 2016-07-30 11:03:01 +0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-08-01 12:49:03 -0700 |
commit | e24e62a948e1519fb4c1bfc40d9d51e36fbbe63e (patch) | |
tree | a29f9fe24fdbe2c727b8212f0940ae3f5cd9f924 /module/zfs/vdev.c | |
parent | df053d67a9c07a9763a4c04468083644eb9aa234 (diff) |
Fix memory leak in function add_config()
Config of a hot spare or l2cache device will leak memory in function
add_config(). At the start of this function, when dealing with a
config which belongs to a hot spare not currently in use or a l2cache
device the config should be freed.
Signed-off-by: liaoyuxiangqin <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #4910
Diffstat (limited to 'module/zfs/vdev.c')
0 files changed, 0 insertions, 0 deletions