[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 1/7] migration: Free removed SaveStateEntry
From: |
Fabiano Rosas |
Subject: |
Re: [PATCH v4 1/7] migration: Free removed SaveStateEntry |
Date: |
Fri, 23 Aug 2024 09:30:46 -0300 |
Akihiko Odaki <akihiko.odaki@daynix.com> writes:
> This fixes LeakSanitizer warnings.
>
> Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
> Reviewed-by: Peter Xu <peterx@redhat.com>
> Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
> ---
> migration/savevm.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/migration/savevm.c b/migration/savevm.c
> index deb57833f8a8..85958d7b09cd 100644
> --- a/migration/savevm.c
> +++ b/migration/savevm.c
> @@ -874,6 +874,8 @@ int vmstate_replace_hack_for_ppc(VMStateIf *obj, int
> instance_id,
>
> if (se) {
> savevm_state_handler_remove(se);
> + g_free(se->compat);
> + g_free(se);
> }
> return vmstate_register(obj, instance_id, vmsd, opaque);
> }
This one was merged already.
- [PATCH v4 0/7] Fix check-qtest-ppc64 sanitizer errors, Akihiko Odaki, 2024/08/23
- [PATCH v4 1/7] migration: Free removed SaveStateEntry, Akihiko Odaki, 2024/08/23
- Re: [PATCH v4 1/7] migration: Free removed SaveStateEntry,
Fabiano Rosas <=
- [PATCH v4 2/7] memory: Do not refer to "memory region's reference count", Akihiko Odaki, 2024/08/23
- [PATCH v4 4/7] memory: Clarify that owner may be missing, Akihiko Odaki, 2024/08/23
- [PATCH v4 3/7] memory: Refer to docs/devel/memory.rst for "owner", Akihiko Odaki, 2024/08/23
- [PATCH v4 5/7] memory: Clarify owner must not call memory_region_ref(), Akihiko Odaki, 2024/08/23
- [PATCH v4 6/7] memory: Do not create circular reference with subregion, Akihiko Odaki, 2024/08/23