Fix memory leak

This commit is contained in:
2021-12-31 00:24:18 +01:00
parent 3b667338cf
commit a06563ecdd
3 changed files with 4 additions and 8 deletions

View File

@@ -414,6 +414,7 @@ void s390_cpu_model_finalize(CPUState *obj)
S390CPU *cpu = S390_CPU(obj);
g_free(cpu->model);
g_free(cpu->ss.keydata);
cpu->model = NULL;
}