[PATCH] monitor: fix memory leak in monitor_fdset_dup_fd_find_remove

2020-01-14 Thread kuhn.chenqun
From: Chen Qun When remove dup_fd in monitor_fdset_dup_fd_find_remove function, we need to free mon_fdset_fd_dup. ASAN shows memory leak stack: Direct leak of 96 byte(s) in 3 object(s) allocated from: #0 0xfffd37b033b3 in __interceptor_calloc (/lib64/libasan.so.4+0xd33b3) #1 0xfffd375c71

Re: [PATCH 2/3] linux-user/i386: Split out gen_signal

2020-01-14 Thread Philippe Mathieu-Daudé
On 1/14/20 10:09 PM, Richard Henderson wrote: This is a bit tidier than open-coding the 5 lines necessary to initialize the target_siginfo_t. In addition, this zeros the remaining bytes of the target_siginfo_t, rather than passing in garbage. Signed-off-by: Richard Henderson --- linux-user/i

Re: [PATCH 1/3] target/i386: Renumber EXCP_SYSCALL

2020-01-14 Thread Philippe Mathieu-Daudé
On 1/14/20 10:09 PM, Richard Henderson wrote: We are not short of numbers for EXCP_*. There is no need to confuse things by having EXCP_VMEXIT and EXCP_SYSCALL overlap, even though the former is only used for system mode and the latter is only used for user mode. Signed-off-by: Richard Henderso

Re: [PATCH] monitor: fix memory leak in monitor_fdset_dup_fd_find_remove

2020-01-14 Thread Marc-André Lureau
On Wed, Jan 15, 2020 at 11:21 AM wrote: > > From: Chen Qun > > When remove dup_fd in monitor_fdset_dup_fd_find_remove function, > we need to free mon_fdset_fd_dup. ASAN shows memory leak stack: > > Direct leak of 96 byte(s) in 3 object(s) allocated from: > #0 0xfffd37b033b3 in __interceptor_c

Re: [PATCH v6 01/11] qapi/error: add (Error **errp) cleaning APIs

2020-01-14 Thread Greg Kurz
On Fri, 10 Jan 2020 22:41:48 +0300 Vladimir Sementsov-Ogievskiy wrote: > Signed-off-by: Vladimir Sementsov-Ogievskiy > --- > Reviewed-by: Greg Kurz > CC: Cornelia Huck > CC: Eric Blake > CC: Kevin Wolf > CC: Max Reitz > CC: Greg Kurz > CC: Stefan Hajnoczi > CC: Stefano Stabellini > CC

<    1   2   3   4   5