Fix a memory leak in Range's find_errors.

Only occurred in invalid instances, such as 3x1:1b when you put a
black in the middle square.
This commit is contained in:
Jonas Kölker
2015-09-21 16:21:48 +02:00
committed by Simon Tatham
parent 9b1b7e0f3a
commit 87b2758b9c

View File

@ -1451,7 +1451,7 @@ static int find_errors(const game_state *state, int *report)
int biggest, canonical;
if (!report) {
printf("dfs fail at %d\n", any_white_cell);
sfree(dsf);
goto found_error;
}