]> granicus.if.org Git - nethack/commit
region memory
authornethack.allison <nethack.allison>
Mon, 3 Jul 2006 14:30:01 +0000 (14:30 +0000)
committernethack.allison <nethack.allison>
Mon, 3 Jul 2006 14:30:01 +0000 (14:30 +0000)
commit4b1c4728d690fe0da3bb3aff1f11ca01621c6962
tree30954f9f157ddfbf4c949be4b2c720091de8d299
parent230d1503506751033ec5a8730b6b385b097f54fd
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.
src/region.c