hw/ppc/virtex_ml507:fix leak of fdevice tree blob
commit438bafcac55308eef4f9029c94dbadd2c7ac3bb7
authorChen Qun <kuhn.chenqun@huawei.com>
Tue, 18 Feb 2020 09:11:53 +0000 (18 17:11 +0800)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 20 Feb 2020 22:15:04 +0000 (21 09:15 +1100)
treea9fec0167d033ee233e0332017a1d58136c7a540
parentab8584349c476f9818dc6403359c85f9ab0ad5eb
hw/ppc/virtex_ml507: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>
Message-Id: <20200218091154.21696-3-kuhn.chenqun@huawei.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/virtex_ml507.c