Re: [PATCH 0/2] hw: Delay timer_new() from init to realize to avoid memleaks

2020-02-15 Thread Richard Henderson
On 2/15/20 7:47 AM, Philippe Mathieu-Daudé wrote: > Philippe Mathieu-Daudé (2): > hw/ipmi/bmc: Delay timer_new_ns() from init to realize to avoid > memleaks > hw/sd/sd: Delay timer_new_ns() from init to realize to avoid memleaks Reviewed-by: Richard Henderson r~

[PATCH 0/2] hw: Delay timer_new() from init to realize to avoid memleaks

2020-02-15 Thread Philippe Mathieu-Daudé
After reviewing various patches from Pan Nengyuan fixing errors reported Huawei's Euler Robot, I wrote this tiny coccinelle script to find all occurences of this pattern: @ match @ identifier instance_init; typedef Object; identifier obj; expression val, scale; identifier c