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 bsd-user: FreeBSD update 2009-10-18 15:16:08 +00:00
i386 bsd-user: FreeBSD update 2009-10-18 15:16:08 +00:00
netbsd
openbsd Fix BSD user compilation on other than OpenBSD 2008-11-22 20:34:45 +00:00
sparc
sparc64
x86_64 bsd-user: FreeBSD update 2009-10-18 15:16:08 +00:00
bsd-mman.h Prepare for handling different BSD mmap() flags 2008-11-29 14:05:16 +00:00
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 linux-user: Move abi_* typedefs into qemu-types.h 2008-12-08 18:12:04 +00:00
qemu.h Remove dead code for ARM semihosting commandline handling 2011-01-07 18:20:57 +02:00
signal.c Update to a hopefully more future proof FSF address 2009-07-16 20:47:01 +00:00
strace.c bsd-users: fix strace 2009-07-17 17:48:03 +00:00
syscall_defs.h bsd-user: FreeBSD update 2009-10-18 15:16:08 +00:00
syscall.c bsd-user: fix breakage by 78cfb07fe0 2009-10-18 18:44:38 +00:00
uaccess.c fix build warnings 2009-07-17 17:48:01 +00:00