qemu-e2k/bsd-user
Stefan Weil 29718712eb bsd-user: Fix possible memory leaks and wrong realloc call
These errors were reported by cppcheck:

[bsd-user/elfload.c:1108]: (error) Common realloc mistake: "syms" nulled but not freed upon failure
[bsd-user/elfload.c:1076]: (error) Memory leak: s
[bsd-user/elfload.c:1079]: (error) Memory leak: syms

v2:
* The previous fix for memory leaks was incomplete (thanks to Peter Maydell for te hint).
* Fix wrong realloc usage, too.

Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2011-01-17 20:23:47 +00:00
..
freebsd
i386
netbsd
openbsd
sparc
sparc64
x86_64
bsd-mman.h
bsdload.c Remove dead code for ARM semihosting commandline handling 2011-01-07 18:20:57 +02:00
elfload.c bsd-user: Fix possible memory leaks and wrong realloc call 2011-01-17 20:23:47 +00:00
errno_defs.h
main.c Add new user mode option -ignore-environment 2010-10-05 13:53:55 -05:00
mmap.c Fix bsd-user qemu_vmalloc() host page protection code 2010-03-30 17:44:51 +00:00
qemu-types.h
qemu.h Remove dead code for ARM semihosting commandline handling 2011-01-07 18:20:57 +02:00
signal.c
strace.c
syscall_defs.h
syscall.c
uaccess.c