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 4d1a8fd02c6d017b4f2d5f36838e8690d03ef551..85f6e1f088c6e5f6bd1e3e7e2296f814557002b7 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 ?