mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 23:51:29 -07:00
Memory management and other fixes from James H.
[originally from svn r8596]
This commit is contained in:
3
map.c
3
map.c
@ -1373,6 +1373,7 @@ static int map_solver(struct solver_scratch *sc,
|
||||
*/
|
||||
}
|
||||
|
||||
sfree(origcolouring);
|
||||
sfree(subcolouring);
|
||||
free_scratch(rsc);
|
||||
|
||||
@ -1788,9 +1789,9 @@ static char *validate_desc(game_params *params, char *desc)
|
||||
|
||||
map = snewn(2*wh, int);
|
||||
ret = parse_edge_list(params, &desc, map);
|
||||
sfree(map);
|
||||
if (ret)
|
||||
return ret;
|
||||
sfree(map);
|
||||
|
||||
if (*desc != ',')
|
||||
return "Expected comma before clue list";
|
||||
|
Reference in New Issue
Block a user