forked from github/server
memory leak: free race->parameters
This commit is contained in:
parent
cdf6d3992e
commit
b81f9db074
|
@ -141,6 +141,7 @@ void racelist_insert(struct race_list **rl, const struct race *r)
|
||||||
void free_races(void) {
|
void free_races(void) {
|
||||||
while (races) {
|
while (races) {
|
||||||
race * rc = races->next;
|
race * rc = races->next;
|
||||||
|
free_params(&races->parameters);
|
||||||
free(races->_name);
|
free(races->_name);
|
||||||
free(races->def_damage);
|
free(races->def_damage);
|
||||||
free(races);
|
free(races);
|
||||||
|
|
Loading…
Reference in New Issue