fixed memory leak
authorHolger Schemel <info@artsoft.org>
Tue, 15 Jan 2019 21:49:00 +0000 (22:49 +0100)
committerHolger Schemel <info@artsoft.org>
Tue, 15 Jan 2019 21:49:00 +0000 (22:49 +0100)
src/libgame/setup.c

index 4d1a8fd..85f6e1f 100644 (file)
@@ -4336,6 +4336,8 @@ static void checkSeriesInfo(void)
   DirectoryEntry *dir_entry;
 #endif
 
+  checked_free(level_directory);
+
   // check for more levels besides the 'levels' field of 'levelinfo.conf'
 
   level_directory = getPath2((leveldir_current->in_user_dir ?