提交 c2c17a24 编写于 作者: G Gonglei 提交者: Michael Tokarev

milkymist.c: fix memory leak

Signed-off-by: NGonglei <arei.gonglei@huawei.com>
Signed-off-by: NMichael Tokarev <mjt@tls.msk.ru>
上级 6c5819c4
...@@ -155,6 +155,7 @@ milkymist_init(MachineState *machine) ...@@ -155,6 +155,7 @@ milkymist_init(MachineState *machine)
bios_name); bios_name);
exit(1); exit(1);
} }
g_free(bios_filename);
milkymist_uart_create(0x60000000, irq[0]); milkymist_uart_create(0x60000000, irq[0]);
milkymist_sysctl_create(0x60001000, irq[1], irq[2], irq[3], milkymist_sysctl_create(0x60001000, irq[1], irq[2], irq[3],
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册