revert to use of g_free to make future qemu integrations easier (#695)
* revert to use of g_free to make future qemu integrations easier * bracing
This commit is contained in:
committed by
Nguyen Anh Quynh
parent
6a2eb14ff3
commit
fccbcfd4c2
@@ -46,7 +46,7 @@ CPUState *cpu_generic_init(struct uc_struct *uc, const char *typename, const cha
|
||||
|
||||
oc = cpu_class_by_name(uc, typename, name);
|
||||
if (oc == NULL) {
|
||||
free(str);
|
||||
g_free(str);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ CPUState *cpu_generic_init(struct uc_struct *uc, const char *typename, const cha
|
||||
|
||||
featurestr = strtok(NULL, ",");
|
||||
cc->parse_features(cpu, featurestr, &err);
|
||||
free(str);
|
||||
g_free(str);
|
||||
if (err != NULL) {
|
||||
goto out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user