Author: cazfi
Date: Thu Aug  6 05:38:24 2015
New Revision: 29346

URL: http://svn.gna.org/viewcvs/freeciv?rev=29346&view=rev
Log:
Clear history from memory and free history file name on exit

See patch #6169

Modified:
    branches/S2_5/server/sernet.c

Modified: branches/S2_5/server/sernet.c
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/server/sernet.c?rev=29346&r1=29345&r2=29346&view=diff
==============================================================================
--- branches/S2_5/server/sernet.c       (original)
+++ branches/S2_5/server/sernet.c       Thu Aug  6 05:38:24 2015
@@ -255,6 +255,9 @@
   if (history_file) {
     write_history(history_file);
     history_truncate_file(history_file, HISTORY_LENGTH);
+    free(history_file);
+    history_file = NULL;
+    clear_history();
   }
 #endif
 


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to