Free team before returning in sql_load_teams()
This commit is contained in:
parent
71f3dba359
commit
46e6d81906
1 changed files with 1 additions and 0 deletions
|
@ -669,6 +669,7 @@ namespace pvpgn
|
|||
if (!(team->teamid = std::atoi(row[0])))
|
||||
{
|
||||
eventlog(eventlog_level_error, __FUNCTION__, "got bad teamid");
|
||||
xfree(team);
|
||||
sql->free_result(result);
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue