Alistair Francis 3aa9004f09
riscv/boot: Fix possible memory leak
Coverity (CID 1405786) thinks that there is a possible memory leak as
we don't guarantee that the memory allocated from riscv_find_firmware()
is freed. This is a false positive, but let's tidy up the code to fix
the warning.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
2019-10-28 08:46:06 -07:00
..
2019-10-28 13:32:40 +00:00
2019-10-15 18:09:04 +01:00
2019-10-26 15:38:07 +02:00
2019-09-20 14:08:10 -05:00
2019-10-26 15:38:02 +02:00
2019-10-28 13:32:40 +00:00
2019-10-24 19:24:56 +02:00
2019-10-26 15:38:02 +02:00
2019-10-15 18:09:04 +01:00
2019-10-28 13:32:40 +00:00
2019-10-18 20:38:10 -07:00