qbus: fix memory leak in qbus_free()
authorIsaku Yamahata <yamahata@valinux.co.jp>
Thu, 27 May 2010 05:35:58 +0000 (14:35 +0900)
committerBlue Swirl <blauwirbel@gmail.com>
Thu, 10 Jun 2010 16:50:11 +0000 (16:50 +0000)
commite26d228071fb38e5159ffd4dd54a5588c22cb731
treea4db31e3217f9794a6f3943d2b8a39ab3b8e0abb
parent4cb8601e17e8048722893228c82dc337a6d1c296
qbus: fix memory leak in qbus_free()

BusState::name is allocated in qbus_create_inplace().
So it should be freed by qbus_free().

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/qdev.c