Thanks, applied.
On Mon, Nov 21, 2011 at 20:06, Stefan Weil 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
> ---
> bsd-user
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 Weil
---
bsd-user/bsdload.c |2 +-
bsd-user/elfload.c
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
---
bsd-user/bsdload.c |2 +-
bsd-user/elfload.c |5 ++---
2 files changed, 3 insertions(+