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

@@ -240,6 +240,7 @@ bypass "wait! there's a creature hidden there" when attacking a hidden monster
remove makedefs.c dependency that time_t and long are the same size
terminal window set to 21 lines can cause a crash during player selection
menus; have bot() check for valid youmonst.data
free storage used to hold region messages in free_region()
Platform- and/or Interface-Specific Fixes

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. */