chiark / gitweb /
Memory leak fixes from Jonas Koelker.
authorSimon Tatham <anakin@pobox.com>
Mon, 20 Sep 2010 10:36:44 +0000 (10:36 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 20 Sep 2010 10:36:44 +0000 (10:36 +0000)
[originally from svn r9001]

unfinished/slide.c

index d32473cfe41fcec5fcd219128da4d08492c23b8d..634c5dec8a6e685de309e8d7f3914138f28cbaf8 100644 (file)
@@ -821,6 +821,9 @@ static void generate_board(int w, int h, int *rtx, int *rty, int *minmoves,
        }
     }
 
+    sfree(dsf);
+    sfree(list);
+    sfree(tried_merge);
     sfree(board2);
 
     *rtx = tx;