OSDN Git Service

モンスターソート用に確保した配列を開放していず、メモリリークしていたのを修正。
authorhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 2 Sep 2002 23:10:45 +0000 (23:10 +0000)
committerhabu <habu@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 2 Sep 2002 23:10:45 +0000 (23:10 +0000)
src/init2.c

index 713f68d..f2126a8 100644 (file)
@@ -1765,6 +1765,9 @@ static errr init_alloc(void)
                }
        }
 
+       /* Free the "r_info" array */
+       C_KILL(elements, max_r_idx, tag_type);
+
 #else /* SORT_R_INFO */
 
        int j;