diff options
| author | Chen Gang <gang.chen.5i5j@gmail.com> | 2014-08-03 23:28:56 +0800 |
|---|---|---|
| committer | Luiz Capitulino <lcapitulino@redhat.com> | 2014-08-18 14:39:10 -0400 |
| commit | 2928207ac1bb2751a1554ea0f9a9641179f51488 (patch) | |
| tree | 3332eed463807d58996993aa9202c4cac6c5a371 /include/hw/misc/arm_integrator_debug.h | |
| parent | 4bb08af34e8961e912855d00b946654500799385 (diff) | |
| download | focaccia-qemu-2928207ac1bb2751a1554ea0f9a9641179f51488.tar.gz focaccia-qemu-2928207ac1bb2751a1554ea0f9a9641179f51488.zip | |
dump.c: Fix memory leak issue in cleanup processing for dump_init()
In dump_init(), when failure occurs, need notice about 'fd' and memory mapping. So call dump_cleanup() for it (need let all initializations at front). Also simplify dump_cleanup(): remove redundant 'ret' and redundant 'fd' checking. Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'include/hw/misc/arm_integrator_debug.h')
0 files changed, 0 insertions, 0 deletions