forked from github/server
memory leak: free building maintenance data
This commit is contained in:
parent
1fc5273f63
commit
2c659c1f47
1 changed files with 1 additions and 0 deletions
|
@ -95,6 +95,7 @@ void bt_register(building_type * type)
|
|||
void free_buildingtype(void *ptr) {
|
||||
building_type *btype = (building_type *)ptr;
|
||||
free_construction(btype->construction);
|
||||
free_construction(btype->maintenance);
|
||||
free(btype->_name);
|
||||
free(btype);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue