From: Christian Heller Date: Wed, 9 Jul 2014 21:31:58 +0000 (+0200) Subject: Server: Remove memory leak in save_world(). X-Git-Tag: tce~720 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/te"st.html?a=commitdiff_plain;h=e4ae4fc25ee35e0dcbba7331e7a4fe1eb4818422;p=plomrogue Server: Remove memory leak in save_world(). --- diff --git a/src/server/io.c b/src/server/io.c index c1cbb3e..761655c 100644 --- a/src/server/io.c +++ b/src/server/io.c @@ -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); }