-devel@nongnu.org; Michael S . Tsirkin
; David Gibson ; Greg Kurz
; Marc-André Lureau ; Stefan
Berger ; Jason Wang ; Juan
Quintela ; Wanghaibin (D) ;
zhukeqian
Subject: Re: [PATCH v3 3/3] vmstate: Fix memory leak in vmstate_handle_alloc()
* Dr. David Alan Gilbert (dgilb...@redhat.com) wrote
* Dr. David Alan Gilbert (dgilb...@redhat.com) wrote:
> * Jinhao Gao (gaojin...@huawei.com) wrote:
> > Some memory allocated for fields having a flag of VMS_ALLOC in SaveState
> > may not free before VM load vmsd in migration. So we pre-free memory before
> > allocation in vmstate_handle_alloc() to
; Jason Wang ; Juan
Quintela ; Wanghaibin (D) ;
zhukeqian
Subject: Re: [PATCH v3 3/3] vmstate: Fix memory leak in vmstate_handle_alloc()
* Jinhao Gao (gaojin...@huawei.com) wrote:
> Some memory allocated for fields having a flag of VMS_ALLOC in
> SaveState may not free before VM load v
* Jinhao Gao (gaojin...@huawei.com) wrote:
> Some memory allocated for fields having a flag of VMS_ALLOC in SaveState
> may not free before VM load vmsd in migration. So we pre-free memory before
> allocation in vmstate_handle_alloc() to avoid memleaks.
>
> Reported-by: Euler Robot
> Signed-off-b
Some memory allocated for fields having a flag of VMS_ALLOC in SaveState
may not free before VM load vmsd in migration. So we pre-free memory before
allocation in vmstate_handle_alloc() to avoid memleaks.
Reported-by: Euler Robot
Signed-off-by: Jinhao Gao
Signed-off-by: Michael S. Tsirkin
---