Re: [PATCH] virdomainjob: preserveJob: memdup the cb structure instead of copying it

2022-09-29 Thread Michal Prívozník
On 9/29/22 13:56, Kristina Hanicova wrote: > In case of variable 'oldjob' (job structure) in > qemuProcessReconnect() the init function was not called and the > cb pointer was just copied from the existing job structure in > virDomainObjPreserveJob(). This caused that the job and oldjob > had the

[PATCH] virdomainjob: preserveJob: memdup the cb structure instead of copying it

2022-09-29 Thread Kristina Hanicova
In case of variable 'oldjob' (job structure) in qemuProcessReconnect() the init function was not called and the cb pointer was just copied from the existing job structure in virDomainObjPreserveJob(). This caused that the job and oldjob had the same pointer, which was later freed at the end of the