|
@@ -283,6 +283,11 @@ static void cpu_common_finalize(Object *obj)
|
|
{
|
|
{
|
|
CPUState *cpu = CPU(obj);
|
|
CPUState *cpu = CPU(obj);
|
|
|
|
|
|
|
|
+#ifdef CONFIG_PLUGIN
|
|
|
|
+ if (tcg_enabled()) {
|
|
|
|
+ g_free(cpu->plugin_state);
|
|
|
|
+ }
|
|
|
|
+#endif
|
|
g_array_free(cpu->gdb_regs, TRUE);
|
|
g_array_free(cpu->gdb_regs, TRUE);
|
|
qemu_lockcnt_destroy(&cpu->in_ioctl_lock);
|
|
qemu_lockcnt_destroy(&cpu->in_ioctl_lock);
|
|
qemu_mutex_destroy(&cpu->work_mutex);
|
|
qemu_mutex_destroy(&cpu->work_mutex);
|