Fix a memory leak from caf73e5857
Don't shadow an already-local variable with another local declaration.
Reported by: dteske
MFC after: 13 days
MFC with: caf73e5857
Sponsored by: Axcient
Differential Revision: https://reviews.freebsd.org/D35331
This commit is contained in:
parent
d46174cd88
commit
77d678b7a4
@ -667,7 +667,8 @@ dialog_menu_layout()
|
||||
for disk in $ZFSBOOT_DISKS; do
|
||||
debug= f_device_find -1 \
|
||||
$disk $DEVICE_TYPE_DISK disk
|
||||
local _${disk}_status
|
||||
f_isset _${disk}_status ||
|
||||
local _${disk}_status
|
||||
setvar _${disk}_status on
|
||||
done
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user