[libvirt] [PATCH] qemumonitorjsontest: Don't leak 'query-jobs' info

Peter Krempa pkrempa at redhat.com
Mon Jul 29 12:26:16 UTC 2019


On Mon, Jul 29, 2019 at 14:23:14 +0200, Michal Privoznik wrote:
> The returned array of qemuMonitorJobInfo structs must be freed.
> 
> 164 (16 direct, 148 indirect) bytes in 1 blocks are definitely lost in loss record 64 of 84
>    at 0x4A3568B: realloc (vg_replace_malloc.c:826)
>    by 0x4D888BD: virReallocN (viralloc.c:244)
>    by 0x4D889B3: virExpandN (viralloc.c:293)
>    by 0x4D88C87: virInsertElementsN (viralloc.c:435)
>    by 0x214004: qemuMonitorJSONGetJobInfo (qemu_monitor_json.c:9185)
>    by 0x148B3F: testQueryJobs (qemumonitorjsontest.c:2979)
>    by 0x14C192: virTestRun (testutils.c:174)
>    by 0x14BF36: mymain (qemumonitorjsontest.c:3286)
>    by 0x14E256: virTestMain (testutils.c:1096)
>    by 0x14BFD9: main (qemumonitorjsontest.c:3298)
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  tests/qemumonitorjsontest.c | 3 +++
>  1 file changed, 3 insertions(+)

ACK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190729/a14973d6/attachment-0001.sig>


More information about the libvir-list mailing list