hw/nios2:fix leak of fdevice tree blob
commit757ca9b81a5d96db5194456ea66dc00bcf618323
authorChen Qun <kuhn.chenqun@huawei.com>
Tue, 18 Feb 2020 09:11:52 +0000 (18 17:11 +0800)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 19 Feb 2020 09:32:50 +0000 (19 10:32 +0100)
treebc88d7e1d8c912bfc17d7f6d6d59e453967d26dc
parentb18ee6a217b88699d436c33543e5c64fff64da45
hw/nios2:fix leak of fdevice tree blob

The device tree blob returned by load_device_tree is malloced.
We should free it after cpu_physical_memory_write().

Reported-by: Euler Robot <euler.robot@huawei.com>
Signed-off-by: Chen Qun <kuhn.chenqun@huawei.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200218091154.21696-2-kuhn.chenqun@huawei.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/nios2/boot.c