home
·
contact
·
privacy
projects
/
plomrogue
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Server: Remove memory leak in save_world().
[plomrogue]
/
src
/
server
/
cleanup.c
diff --git
a/src/server/cleanup.c
b/src/server/cleanup.c
index 02f52b3d7d13b32d49cb2ff1e9a0c27af90ece95..2e7ab83ab534840f6f979eecdd78fb43e14e7028 100644
(file)
--- a/
src/server/cleanup.c
+++ b/
src/server/cleanup.c
@@
-26,7
+26,7
@@
extern void cleanup()
free(world.map.cells);
if (cleanup_flags & CLEANUP_WORLDSTATE)
{
free(world.map.cells);
if (cleanup_flags & CLEANUP_WORLDSTATE)
{
- unlink(s[PATH_WORLDSTATE]);
+ unlink(s[
S_
PATH_WORLDSTATE]);
}
if (cleanup_flags & CLEANUP_THINGS)
{
}
if (cleanup_flags & CLEANUP_THINGS)
{
@@
-43,13
+43,13
@@
extern void cleanup()
if (cleanup_flags & CLEANUP_IN)
{
try_fclose(world.file_in, f_name);
if (cleanup_flags & CLEANUP_IN)
{
try_fclose(world.file_in, f_name);
- unlink(s[PATH_IN]);
+ unlink(s[
S_
PATH_IN]);
}
if (cleanup_flags & CLEANUP_OUT)
{
try_fclose(world.file_out, f_name);
free(world.server_test);
}
if (cleanup_flags & CLEANUP_OUT)
{
try_fclose(world.file_out, f_name);
free(world.server_test);
- unlink(s[PATH_OUT]);
+ unlink(s[
S_
PATH_OUT]);
}
}
}
}