Re: [PATCH 05/19] qemuMigrationSrcPerformPeer2Peer3: Don't leak 'dom_xml' on cleanup

2021-02-12 Thread Jiri Denemark
On Thu, Feb 11, 2021 at 16:37:44 +0100, Peter Krempa wrote: > Use g_autofree for 'dom_xml' to free it on some of the (unlikely) code > paths jumping to cleanup prior to the deallocation which is done right > after it's not needed any more since it's a big string. > > Noticed when running under

[PATCH 05/19] qemuMigrationSrcPerformPeer2Peer3: Don't leak 'dom_xml' on cleanup

2021-02-11 Thread Peter Krempa
Use g_autofree for 'dom_xml' to free it on some of the (unlikely) code paths jumping to cleanup prior to the deallocation which is done right after it's not needed any more since it's a big string. Noticed when running under valgrind: ==2204780== 8,192 bytes in 1 blocks are definitely lost in