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
This commit is contained in:
plagman 2010-12-19 02:04:59 +00:00
parent 4a5e89f0dd
commit a0269f6dac

View file

@ -9161,7 +9161,7 @@ static void G_Startup(void)
G_GameExit("Failed loading art."); G_GameExit("Failed loading art.");
} }
chdir(cwd); chdir(cwd);
Bfree(cwd); free(cwd);
} }
else if (loadpics("tiles000.art",MAXCACHE1DSIZE) < 0) else if (loadpics("tiles000.art",MAXCACHE1DSIZE) < 0)
G_GameExit("Failed loading art."); G_GameExit("Failed loading art.");