Fixed memory leak in game_report() when returning without freeing ladder_info
This commit is contained in:
parent
682abe3cc5
commit
08b42c5990
1 changed files with 6 additions and 0 deletions
|
@ -943,6 +943,12 @@ namespace pvpgn
|
|||
if (game_get_type(game) != game_type_ladder && prefs_get_report_all_games() != 1)
|
||||
{
|
||||
eventlog(eventlog_level_debug, __FUNCTION__, "not reporting normal games");
|
||||
|
||||
if (ladder_info)
|
||||
{
|
||||
xfree(ladder_info);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue