efi_loader: memory leak in efi_set_variable()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 2 Oct 2018 03:30:05 +0000 (05:30 +0200)
committerAlexander Graf <agraf@suse.de>
Tue, 16 Oct 2018 14:40:11 +0000 (16:40 +0200)
commitdadc2bddb0c0e00554666ec39bc10b9d66409f24
treee258749afba98284f85aa0ff22eb96ab24a1d593
parent2c61e0cc5c67345d2d3e4a66f6e22899afa381cc
efi_loader: memory leak in efi_set_variable()

Do not leak native_name if out of memory.

This addresses CoverityScan CID 184095.

Reported-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_variable.c