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:
@@ -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. */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user