On Tue, Sep 09, 2025 at 10:28:33 +0100, Daniel P. Berrangé via Devel wrote:
> From: Daniel P. Berrangé
>
> The virDomainDeviceInfoClear method does not free the struct, only
> its contents, so all pointer fields must be explicitly set to NULL
> after releasing to avoid disk of double-free.
>
> R
From: Daniel P. Berrangé
The virDomainDeviceInfoClear method does not free the struct, only
its contents, so all pointer fields must be explicitly set to NULL
after releasing to avoid disk of double-free.
Reported by coverity:
*** CID 895678: Memory - corruptions (USE_AFTER_FREE)
/
On Tue, Sep 09, 2025 at 11:36:42AM +0200, Peter Krempa wrote:
> On Tue, Sep 09, 2025 at 10:28:33 +0100, Daniel P. Berrangé via Devel wrote:
> > From: Daniel P. Berrangé
> >
> > The virDomainDeviceInfoClear method does not free the struct, only
> > its contents, so all pointer fields must be expli