target-mips: fix memory leak
commit3ad9fd5a257794d516db515c217c78a5806112fe
authorGonglei <arei.gonglei@huawei.com>
Tue, 28 Apr 2015 09:11:02 +0000 (28 17:11 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 30 Apr 2015 13:06:17 +0000 (30 16:06 +0300)
tree4ed714ef0f68bd0e3a76d5c43c0b6b839804bebb
parent5403432f39fc09ce1973cc8c1a62e16502358bf7
target-mips: fix memory leak

Coveristy reports that variable prom_buf/params_buf going
out of scope leaks the storage it points to.

Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Leon Alrae <leon.alrae@imgtec.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Leon Alrae <leon.alrae@imgtec.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/mips/mips_fulong2e.c
hw/mips/mips_malta.c
hw/mips/mips_r4k.c