]> Git Repo - qemu.git/commit - dump.c
dump.c: Fix memory leak issue in cleanup processing for dump_init()
authorChen Gang <[email protected]>
Sun, 3 Aug 2014 15:28:56 +0000 (23:28 +0800)
committerLuiz Capitulino <[email protected]>
Mon, 18 Aug 2014 18:39:10 +0000 (14:39 -0400)
commit2928207ac1bb2751a1554ea0f9a9641179f51488
tree3332eed463807d58996993aa9202c4cac6c5a371
parent4bb08af34e8961e912855d00b946654500799385
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 <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Signed-off-by: Luiz Capitulino <[email protected]>
dump.c
This page took 0.031191 seconds and 4 git commands to generate.