region memory

<Someone> wrote on Tuesday, July 27, 2004 at 06:46:15
> In the region.c function rest_regions allocates storage for the possible
> enter_msg and leave_msg strings. But the function free_region does not relese
> this storage.

Also ensures that some code that is currently ifdef'd out
makes copies of the strings into memory from alloc()
to ensure that no problems with free() result if the function
gets passed a literal string.
This commit is contained in:
nethack.allison
2006-07-03 14:21:21 +00:00
parent b8d744819b
commit 230d150350
2 changed files with 2 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)region.c 3.5 2006/06/27 */
/* SCCS Id: @(#)region.c 3.5 2006/07/02 */
/* Copyright (c) 1996 by Jean-Christophe Collet */
/* NetHack may be freely redistributed. See license for details. */