home · contact · privacy
Server/py: Remove superfluous line.
[plomrogue] / src / server / cleanup.c
index 2e7ab83ab534840f6f979eecdd78fb43e14e7028..ec8017d02369f261784f5dad92f6d65be7c27ace 100644 (file)
@@ -1,4 +1,9 @@
-/* src/server/cleanup.c */
+/* src/server/cleanup.c
+ *
+ * This file is part of PlomRogue. PlomRogue is licensed under the GPL version 3
+ * or any later version. For details on its copyright, license, and warranties,
+ * see the file NOTICE in the root directory of the PlomRogue source package.
+ */
 
 #include "cleanup.h"
 #include <stdint.h> /* uint32_t */
@@ -20,9 +25,7 @@ static uint32_t cleanup_flags = 0x0000;
 
 extern void cleanup()
 {
-    char * f_name = "cleanup()";
     free(world.queue);
-    free(world.log);
     free(world.map.cells);
     if (cleanup_flags & CLEANUP_WORLDSTATE)
     {
@@ -42,12 +45,12 @@ extern void cleanup()
     }
     if (cleanup_flags & CLEANUP_IN)
     {
-        try_fclose(world.file_in, f_name);
+        try_fclose(world.file_in, __func__);
         unlink(s[S_PATH_IN]);
     }
     if (cleanup_flags & CLEANUP_OUT)
     {
-        try_fclose(world.file_out, f_name);
+        try_fclose(world.file_out, __func__);
         free(world.server_test);
         unlink(s[S_PATH_OUT]);
     }