diff options
author | Michael S. Tsirkin | 2014-08-17 11:45:17 +0200 |
---|---|---|
committer | Luiz Capitulino | 2014-08-18 20:39:10 +0200 |
commit | b3dd1b8c295636e64ceb14cdc4db6420d7319e38 (patch) | |
tree | e8455dfc57b74258a99088394bf2c6ba9a57ed40 /cputlb.c | |
parent | dump.c: Fix memory leak issue in cleanup processing for dump_init() (diff) | |
download | qemu-b3dd1b8c295636e64ceb14cdc4db6420d7319e38.tar.gz qemu-b3dd1b8c295636e64ceb14cdc4db6420d7319e38.tar.xz qemu-b3dd1b8c295636e64ceb14cdc4db6420d7319e38.zip |
monitor: fix use after free
The function monitor_fdset_dup_fd_find_remove() references member of
'mon_fdset' which - when remove flag is set - may be freed in function
monitor_fdset_cleanup().
remove is set by monitor_fdset_dup_fd_remove which in practice
does not need the returned value, so make it void,
and return -1 from monitor_fdset_dup_fd_find_remove.
Reported-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'cputlb.c')
0 files changed, 0 insertions, 0 deletions