mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-13 09:48:23 +03:00
exbuild: fix double free
Fix double free when subtables are used. This affected Rance IX and probably other games.
This commit is contained in:
@@ -247,7 +247,6 @@ struct ex_field *ast_make_field(int type, struct string *name, int uk0, int uk1,
|
||||
if (subfields) {
|
||||
field->nr_subfields = kv_size(*subfields);
|
||||
flatten_list(struct ex_field, subfields, field->subfields);
|
||||
free(subfields);
|
||||
}
|
||||
return field;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user