microblaze: fix memory leak
commit4d850406a859d3a5dcfca74eb9caa76ccc064ab3
authorGonglei <arei.gonglei@huawei.com>
Thu, 5 Mar 2015 03:05:20 +0000 (5 11:05 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 30 Apr 2015 13:06:18 +0000 (30 16:06 +0300)
tree10a9347b4e321eecb6c1520a8457bc570b0c8f74
parentfee068e4f190a36ef3bda9aa7c802f90434ef8e5
microblaze: fix memory leak

When not assign a -dtb argument, the variable dtb_filename
storage returned from qemu_find_file(), which should be freed
after use. Alternatively we define a local variable filename,
with 'char *' type, free after use.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/microblaze/boot.c