Thanks, applied.
On Mon, Nov 21, 2011 at 20:06, Stefan Weil s...@weilnetz.de wrote:
This bug was spotted by cppcheck.
Using g_try_malloc0 (as does the linux-user code) fixes this.
v2:
Use g_free in bsdload.c, too. Thanks to Peter Maydell for this hint.
Signed-off-by: Stefan Weil
Am 21.11.2011 21:06, schrieb Stefan Weil:
This bug was spotted by cppcheck.
Using g_try_malloc0 (as does the linux-user code) fixes this.
v2:
Use g_free in bsdload.c, too. Thanks to Peter Maydell for this hint.
Signed-off-by: Stefan Weils...@weilnetz.de
---
bsd-user/bsdload.c |2 +-
This bug was spotted by cppcheck.
Using g_try_malloc0 (as does the linux-user code) fixes this.
v2:
Use g_free in bsdload.c, too. Thanks to Peter Maydell for this hint.
Signed-off-by: Stefan Weil s...@weilnetz.de
---
bsd-user/bsdload.c |2 +-
bsd-user/elfload.c |5 ++---
2 files