]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: memory leak in efi_capsule_scan_dir()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 11 Apr 2021 04:53:04 +0000 (06:53 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 17 Apr 2021 18:01:32 +0000 (20:01 +0200)
commite8287b0fb2be8acf8d0412be3b4174768fef348c
tree94d72018f72b282ed10feea5fb001a81ab2e4255
parent7d823747c695e8638b637abd0c19434f661e50d9
efi_loader: memory leak in efi_capsule_scan_dir()

If realloc() fails, we should free the old buffer.

Fixes: c74cd8bd08d1: ("efi_loader: capsule: add capsule_on_disk support")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_capsule.c