shithub: puzzles

Download patch

ref: 87b2758b9c5459eae825d0642eb4c057e8c5c6fd
parent: 9b1b7e0f3a6858da2bdd3d855a1a9c2801122f30
author: Jonas Kölker <jonaskoelker@yahoo.com>
date: Mon Sep 21 12:21:48 EDT 2015

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.

--- a/range.c
+++ b/range.c
@@ -1451,7 +1451,7 @@
         int biggest, canonical;
 
         if (!report) {
-            printf("dfs fail at %d\n", any_white_cell);
+            sfree(dsf);
             goto found_error;
         }