The find_currdev() is using variable "copy" to store the reference to trimmed devpath pointer,
if for some reason the efi_devpath_handle() fails, we will leak this copy.
Also we can simplify the code there a bit.
Differential D9191
loader.efi: find_currdev() can leak memory tsoome on Jan 15 2017, 7:31 PM. Authored by Tags None Referenced Files
Subscribers None
Details The find_currdev() is using variable "copy" to store the reference to trimmed devpath pointer, Also we can simplify the code there a bit. build and boot
Diff Detail
|