]> granicus.if.org Git - nethack/commitdiff
Fix a memory leak on termination.
authorSean Hunt <scshunt@csclub.uwaterloo.ca>
Wed, 25 Mar 2015 18:34:03 +0000 (14:34 -0400)
committerSean Hunt <scshunt@csclub.uwaterloo.ca>
Wed, 25 Mar 2015 18:34:28 +0000 (14:34 -0400)
Found by Alex Smith.

src/save.c

index 807ecd7dcf4aaab87394672111de05fa7de87f0f..f94b1857c0b65331319199f32e3bc0bddecb8feb 100644 (file)
@@ -1316,6 +1316,7 @@ freedynamicdata()
        /* level-specific data */
        free_timers(RANGE_LEVEL);
        free_light_sources(RANGE_LEVEL);
+    clear_regions();
        freemonchn(fmon);
        free_worm();            /* release worm segment information */
        freetrapchn(ftrap);