mirror of
https://github.com/qemu/qemu.git
synced 2024-11-25 20:03:37 +08:00
b3dd1b8c29
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>
7 lines
103 B
C
7 lines
103 B
C
#include "qemu-common.h"
|
|
#include "monitor/monitor.h"
|
|
|
|
void monitor_fdset_dup_fd_remove(int dupfd)
|
|
{
|
|
}
|