diff options
author | Peter Maydell | 2014-02-17 19:55:31 +0100 |
---|---|---|
committer | Riku Voipio | 2014-02-18 15:54:06 +0100 |
commit | 6afafa86f3446f5e6dd410cc2c442e98adabc26c (patch) | |
tree | 1a92ccfbf311fa0ad777862b232022faad06a557 /linux-user/vm86.c | |
parent | linux-user: sync syscall numbers upto 3.13 (diff) | |
download | qemu-6afafa86f3446f5e6dd410cc2c442e98adabc26c.tar.gz qemu-6afafa86f3446f5e6dd410cc2c442e98adabc26c.tar.xz qemu-6afafa86f3446f5e6dd410cc2c442e98adabc26c.zip |
linux-user/elfload.c: Avoid calling g_free() on uninitialized data
Avoid calling g_free() on unintialized data in the error-handling
paths in elf_core_dump() by splitting the initialization of the
elf_note_info struct out of fill_note_info() so that it's always
valid to call free_note_info() whether we got to the point of
being able to fill_note_info() or not.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Diffstat (limited to 'linux-user/vm86.c')
0 files changed, 0 insertions, 0 deletions