shithub: puzzles

Download patch

ref: b96a99042bd16535b0c219f69a67545bcab0bf70
parent: 795ef3c137a0ead6ab058ab60d6f90bd4029ab43
author: Simon Tatham <anakin@pobox.com>
date: Sun Jul 4 18:57:05 EDT 2010

Patch from Jonas Koelker to fix a double free in magnetssolver.

[originally from svn r8972]

--- a/magnets.c
+++ b/magnets.c
@@ -2552,7 +2552,6 @@
     err = validate_desc(p, desc);
     if (err) {
         fprintf(stderr, "%s: %s\nDescription: %s\n", quis, err, desc);
-        free_params(p);
         goto done;
     }
     s = new_game(NULL, p, desc);