resettable_container_init allocates a GPtrArray for children, but
resettable_container_finalize was empty and never freed it.
Fixes: 4c046ce37af0 ("hw/core: Add ResetContainer which holds objects implementing Resettable")
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
static void resettable_container_finalize(Object *obj)
{
+ ResettableContainer *rc = RESETTABLE_CONTAINER(obj);
+
+ g_ptr_array_unref(rc->children);
}
static void resettable_container_class_init(ObjectClass *klass,