Re: [PATCH v2] qom-qmp-cmds: fix two memleaks in qmp_object_add

2020-03-10 Thread Kevin Wolf
Am 10.03.2020 um 07:46 hat Pan Nengyuan geschrieben: > 'type/id' forgot to free in qmp_object_add, this patch fix that. > > The leak stack: > Direct leak of 84 byte(s) in 6 object(s) allocated from: > #0 0x7fe2a5ebf768 in __interceptor_malloc (/lib64/libasan.so.5+0xef768) > #1 0x7fe2a50444

Re: [PATCH v2] qom-qmp-cmds: fix two memleaks in qmp_object_add

2020-03-10 Thread Daniel P . Berrangé
On Tue, Mar 10, 2020 at 02:46:40PM +0800, Pan Nengyuan wrote: > 'type/id' forgot to free in qmp_object_add, this patch fix that. > > The leak stack: > Direct leak of 84 byte(s) in 6 object(s) allocated from: > #0 0x7fe2a5ebf768 in __interceptor_malloc (/lib64/libasan.so.5+0xef768) > #1 0x7

Re: [PATCH v2] qom-qmp-cmds: fix two memleaks in qmp_object_add

2020-03-10 Thread Igor Mammedov
On Tue, 10 Mar 2020 14:46:40 +0800 Pan Nengyuan wrote: > 'type/id' forgot to free in qmp_object_add, this patch fix that. > > The leak stack: > Direct leak of 84 byte(s) in 6 object(s) allocated from: > #0 0x7fe2a5ebf768 in __interceptor_malloc (/lib64/libasan.so.5+0xef768) > #1 0x7fe2a5

[PATCH v2] qom-qmp-cmds: fix two memleaks in qmp_object_add

2020-03-09 Thread Pan Nengyuan
'type/id' forgot to free in qmp_object_add, this patch fix that. The leak stack: Direct leak of 84 byte(s) in 6 object(s) allocated from: #0 0x7fe2a5ebf768 in __interceptor_malloc (/lib64/libasan.so.5+0xef768) #1 0x7fe2a505 in g_malloc (/lib64/libglib-2.0.so.0+0x52445) #2 0x7fe2a50