diff options
author | Stefan Weil | 2011-01-16 16:28:20 +0100 |
---|---|---|
committer | Blue Swirl | 2011-01-17 21:23:47 +0100 |
commit | 29718712eb2e53c09d28f08e39f6514d690f6fd3 (patch) | |
tree | 76f3b5c5e368ff2d4fee69cd3a44bfcf0d2f80cb /tests/cris/check_abs.c | |
parent | sm501: add 2D engine copyrect support (diff) | |
download | qemu-29718712eb2e53c09d28f08e39f6514d690f6fd3.tar.gz qemu-29718712eb2e53c09d28f08e39f6514d690f6fd3.tar.xz qemu-29718712eb2e53c09d28f08e39f6514d690f6fd3.zip |
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>
Diffstat (limited to 'tests/cris/check_abs.c')
0 files changed, 0 insertions, 0 deletions