From: Holger Schemel Date: Tue, 15 Jan 2019 21:49:00 +0000 (+0100) Subject: fixed memory leak X-Git-Tag: 4.1.2.0~48 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=4d5bada656d88feb1eef48b153d5047056e2067c;p=rocksndiamonds.git fixed memory leak --- diff --git a/src/libgame/setup.c b/src/libgame/setup.c index 4d1a8fd0..85f6e1f0 100644 --- a/src/libgame/setup.c +++ b/src/libgame/setup.c @@ -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 ?