Re: [U-Boot] [RFC] efi_loader: memory leak in bootefi

2017-07-07 Thread Ard Biesheuvel
On 6 July 2017 at 20:24, Alexander Graf wrote: > > > On 06.07.17 20:23, Heinrich Schuchardt wrote: >> >> On 07/06/2017 05:52 PM, Alexander Graf wrote: >>> >>> Hi Heinrich, >>> >>> On 07/06/2017 05:43 PM, Heinrich Schuchardt wrote: Hello Alex, in bootefi.c do_bootefi_exec we bui

Re: [U-Boot] [RFC] efi_loader: memory leak in bootefi

2017-07-06 Thread Alexander Graf
On 06.07.17 20:23, Heinrich Schuchardt wrote: On 07/06/2017 05:52 PM, Alexander Graf wrote: Hi Heinrich, On 07/06/2017 05:43 PM, Heinrich Schuchardt wrote: Hello Alex, in bootefi.c do_bootefi_exec we build the efi_obj_list. This includes allocation of memory for some handlers (e.g. in efi_g

Re: [U-Boot] [RFC] efi_loader: memory leak in bootefi

2017-07-06 Thread Heinrich Schuchardt
On 07/06/2017 05:52 PM, Alexander Graf wrote: > Hi Heinrich, > > On 07/06/2017 05:43 PM, Heinrich Schuchardt wrote: >> Hello Alex, >> >> in bootefi.c do_bootefi_exec we build the efi_obj_list. This includes >> allocation of memory for some handlers (e.g. in efi_gop_register). >> >> After returning

Re: [U-Boot] [RFC] efi_loader: memory leak in bootefi

2017-07-06 Thread Alexander Graf
Hi Heinrich, On 07/06/2017 05:43 PM, Heinrich Schuchardt wrote: Hello Alex, in bootefi.c do_bootefi_exec we build the efi_obj_list. This includes allocation of memory for some handlers (e.g. in efi_gop_register). After returning from the efi appliation we have no clean up code to release these

[U-Boot] [RFC] efi_loader: memory leak in bootefi

2017-07-06 Thread Heinrich Schuchardt
Hello Alex, in bootefi.c do_bootefi_exec we build the efi_obj_list. This includes allocation of memory for some handlers (e.g. in efi_gop_register). After returning from the efi appliation we have no clean up code to release these objects. We do not remove the list elements from efi_obj_list. F