home · contact · privacy
Server: Remove memory leak in save_world().
authorChristian Heller <c.heller@plomlompom.de>
Wed, 9 Jul 2014 21:31:58 +0000 (23:31 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 9 Jul 2014 21:31:58 +0000 (23:31 +0200)
src/server/io.c

index c1cbb3e825194f39b56f8d617a1dac401e2df1e5..761655cf9877206e30f9c0636676038f195810fd 100644 (file)
@@ -349,4 +349,5 @@ extern void save_world()
     }
     write_key_value(file, s[S_CMD_DO_FOV], 1);
     try_fclose_unlink_rename(file, path_tmp, s[S_PATH_SAVE], f_name);
+    free(path_tmp);
 }