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:
Chris Eagle
2016-12-21 06:28:36 -08:00
committed by Nguyen Anh Quynh
parent 6a2eb14ff3
commit fccbcfd4c2
48 changed files with 224 additions and 219 deletions

View File

@@ -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;
}