From a0269f6dac726de8c0e8a798578378aaa3ea1b2b Mon Sep 17 00:00:00 2001 From: plagman Date: Sun, 19 Dec 2010 02:04:59 +0000 Subject: [PATCH] getcwd with NULL gives us memory allocated from the system, so don't try to use nedmalloc to free it. git-svn-id: https://svn.eduke32.com/eduke32@1737 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/game.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index ae6748e74..3d17352f5 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -9161,7 +9161,7 @@ static void G_Startup(void) G_GameExit("Failed loading art."); } chdir(cwd); - Bfree(cwd); + free(cwd); } else if (loadpics("tiles000.art",MAXCACHE1DSIZE) < 0) G_GameExit("Failed loading art.");